Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add lifecycle to avoid forcing new vms #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions instances.tf
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ users:
ssh-authorized-keys:
- ${tls_private_key.installkey.public_key_openssh}
EOF

lifecycle {
# Due to several known issues in Terraform AWS provider related to arguments of aws_instance:
# (eg, https://github.com/terraform-providers/terraform-provider-aws/issues/2036)
# we have to ignore changes in the following arguments
ignore_changes = [ "root_block_device", "ebs_block_device" ]
}
}

resource "aws_instance" "icpmaster" {
Expand Down Expand Up @@ -205,6 +212,13 @@ users:
ssh-authorized-keys:
- ${tls_private_key.installkey.public_key_openssh}
EOF

lifecycle {
# Due to several known issues in Terraform AWS provider related to arguments of aws_instance:
# (eg, https://github.com/terraform-providers/terraform-provider-aws/issues/2036)
# we have to ignore changes in the following arguments
ignore_changes = [ "root_block_device", "ebs_block_device" ]
}
}

resource "aws_instance" "icpproxy" {
Expand Down Expand Up @@ -271,6 +285,12 @@ users:
ssh-authorized-keys:
- ${tls_private_key.installkey.public_key_openssh}
EOF
lifecycle {
# Due to several known issues in Terraform AWS provider related to arguments of aws_instance:
# (eg, https://github.com/terraform-providers/terraform-provider-aws/issues/2036)
# we have to ignore changes in the following arguments
ignore_changes = [ "root_block_device", "ebs_block_device" ]
}
}

resource "aws_instance" "icpmanagement" {
Expand Down Expand Up @@ -335,6 +355,12 @@ users:
ssh-authorized-keys:
- ${tls_private_key.installkey.public_key_openssh}
EOF
lifecycle {
# Due to several known issues in Terraform AWS provider related to arguments of aws_instance:
# (eg, https://github.com/terraform-providers/terraform-provider-aws/issues/2036)
# we have to ignore changes in the following arguments
ignore_changes = [ "root_block_device", "ebs_block_device" ]
}
}

resource "aws_instance" "icpva" {
Expand Down Expand Up @@ -400,6 +426,12 @@ users:
- ${tls_private_key.installkey.public_key_openssh}
EOF

lifecycle {
# Due to several known issues in Terraform AWS provider related to arguments of aws_instance:
# (eg, https://github.com/terraform-providers/terraform-provider-aws/issues/2036)
# we have to ignore changes in the following arguments
ignore_changes = [ "root_block_device", "ebs_block_device" ]
}
}

resource "aws_instance" "icpnodes" {
Expand Down Expand Up @@ -466,6 +498,13 @@ users:
ssh-authorized-keys:
- ${tls_private_key.installkey.public_key_openssh}
EOF

lifecycle {
# Due to several known issues in Terraform AWS provider related to arguments of aws_instance:
# (eg, https://github.com/terraform-providers/terraform-provider-aws/issues/2036)
# we have to ignore changes in the following arguments
ignore_changes = [ "root_block_device", "ebs_block_device" ]
}
}

output "bootmaster" {
Expand Down