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

TM-98 Stop EC2 rebuild with userdata chage #7755

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
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
9 changes: 6 additions & 3 deletions terraform/environments/apex/application_variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"alb_elb_5xx_alarm_threshold": "10",
"alb_target_4xx_alarm_threshold": "10",
"alb_elb_4xx_alarm_threshold": "10",
"oas_lz_cidr": "10.202.4.85/32"
"oas_lz_cidr": "10.202.4.85/32",
"user_data_replace_on_change": "false"
},
"test": {
"ec2amiid": "ami-0f9852b626b9b57e7",
Expand Down Expand Up @@ -98,7 +99,8 @@
"alb_elb_5xx_alarm_threshold": "10",
"alb_target_4xx_alarm_threshold": "10",
"alb_elb_4xx_alarm_threshold": "10",
"oas_lz_cidr": "10.206.4.156/32"
"oas_lz_cidr": "10.206.4.156/32",
"user_data_replace_on_change": "false"
},
"preproduction": {
"ec2amiid": "ami-0cbc8c735c4f995b2",
Expand Down Expand Up @@ -147,7 +149,8 @@
"alb_elb_5xx_alarm_threshold": "10",
"alb_target_4xx_alarm_threshold": "10",
"alb_elb_4xx_alarm_threshold": "10",
"oas_lz_cidr": "10.206.4.156/32"
"oas_lz_cidr": "10.206.4.156/32",
"user_data_replace_on_change": "false"
},
"production": {
"example_var": "production-data",
Expand Down
2 changes: 1 addition & 1 deletion terraform/environments/apex/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ resource "aws_instance" "apex_db_instance" {
iam_instance_profile = aws_iam_instance_profile.ec2_instance_profile.id
key_name = aws_key_pair.apex.key_name
user_data_base64 = base64encode(local.database-instance-userdata)
user_data_replace_on_change = true
user_data_replace_on_change = local.application_data.accounts[local.environment].user_data_replace_on_change


root_block_device {
Expand Down
Loading