Itamae実行時にノードアトリビュートを与えて実行する(itamae -y node.yaml recipe.rb
or itamae -j node.json recipe.rb
)が、
そのノードアトリビュート内部で擬似的にEnvironment変数を設定しておく。
# nodes/hogehoge-web-server.yaml
environment: development
cookbooks:
- dnsmasq
module "security_group_rules_with_port_range" { | |
source = "./modules/security_group_rules" | |
security_group_id = "sg-XXXXXXXX" | |
description = "Windows Active Directory ports" | |
type = "ingress" | |
self = true | |
rules = [ | |
# DNS | |
{ protocol = "udp", port = "53" }, | |
{ protocol = "tcp", port = "53" }, |
大まかな流れは、まおーさんの情報を参考にしてやってみました。 https://zenn.dev/yakumo/articles/c8f1b7bd8398414286a15da1cbcbe517
かつあい
$certificatePassword = Read-Host -AsSecureString -Prompt 'Enter a password for the PFX file'
$signCert = New-SelfSignedCertificate -Subject 'CN=HGS Signing Certificate' -KeyUsage DataEncipherment, DigitalSignature Export-PfxCertificate -FilePath '.\signCert.pfx' -Password $certificatePassword -Cert $signCert
Remove-Item $signCert.PSPath