File tree Expand file tree Collapse file tree
terraform-redeploy-example Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ provider "aws" {
2323# ---------------------------------------------------------------------------------------------------------------------
2424
2525resource "aws_instance" "example" {
26- ami = data. aws_ami . ubuntu . id
27- instance_type = var. instance_type
26+ ami = data. aws_ami . ubuntu . id
27+ instance_type = var. instance_type
2828 user_data = templatefile (" ${ path . module } /user-data/user-data.sh" , {
2929 instance_text = var.instance_text
3030 instance_port = var.instance_port
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ resource "aws_launch_configuration" "web_servers" {
7474 instance_text = var.instance_text
7575 instance_port = var.instance_port
7676 })
77- key_name = var. key_pair_name
77+ key_name = var. key_pair_name
7878
7979 # When used with an aws_autoscaling_group resource, the aws_launch_configuration must set create_before_destroy to
8080 # true. Note: as soon as you set create_before_destroy = true in one resource, you must also set it in every resource
You can’t perform that action at this time.
0 commit comments