Difference between revisions of "Terraform apply: modifying ec2 instance size"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | <pre> | ||
+ | terraform apply | ||
+ | aws_instance.example: Refreshing state... [id=i-079b8300c42bea5c3] | ||
+ | Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the | ||
+ | following symbols: | ||
+ | ~ update in-place | ||
+ | |||
+ | Terraform will perform the following actions: | ||
+ | |||
+ | # aws_instance.example will be updated in-place | ||
+ | ~ resource "aws_instance" "example" { | ||
+ | id = "i-079b8300c42bea5c3" | ||
+ | ~ instance_type = "t2.micro" -> "t2.nano" | ||
+ | tags = { | ||
+ | "Name" = "ExampleAppServerInstance" | ||
+ | } | ||
+ | # (27 unchanged attributes hidden) | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | # (5 unchanged blocks hidden) | ||
+ | } | ||
+ | |||
+ | Plan: 0 to add, 1 to change, 0 to destroy. | ||
+ | |||
+ | Do you want to perform these actions? | ||
+ | Terraform will perform the actions described above. | ||
+ | Only 'yes' will be accepted to approve. | ||
+ | |||
+ | Enter a value: yes | ||
+ | |||
+ | aws_instance.example: Modifying... [id=i-079b8300c42bea5c3] | ||
+ | aws_instance.example: Still modifying... [id=i-079b8300c42bea5c3, 10s elapsed] | ||
+ | aws_instance.example: Still modifying... [id=i-079b8300c42bea5c3, 20s elapsed] | ||
+ | aws_instance.example: Still modifying... [id=i-079b8300c42bea5c3, 30s elapsed] | ||
+ | aws_instance.example: Still modifying... [id=i-079b8300c42bea5c3, 40s elapsed] | ||
+ | aws_instance.example: Still modifying... [id=i-079b8300c42bea5c3, 50s elapsed] | ||
+ | aws_instance.example: Still modifying... [id=i-079b8300c42bea5c3, 1m0s elapsed] | ||
+ | aws_instance.example: Modifications complete after 1m0s [id=i-079b8300c42bea5c3] | ||
+ | |||
+ | Apply complete! Resources: 0 added, 1 changed, 0 destroyed. | ||
+ | </pre> | ||
== See also == | == See also == |
Revision as of 09:43, 2 September 2021
terraform apply aws_instance.example: Refreshing state... [id=i-079b8300c42bea5c3] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: ~ update in-place Terraform will perform the following actions: # aws_instance.example will be updated in-place ~ resource "aws_instance" "example" { id = "i-079b8300c42bea5c3" ~ instance_type = "t2.micro" -> "t2.nano" tags = { "Name" = "ExampleAppServerInstance" } # (27 unchanged attributes hidden) # (5 unchanged blocks hidden) } Plan: 0 to add, 1 to change, 0 to destroy. Do you want to perform these actions? Terraform will perform the actions described above. Only 'yes' will be accepted to approve. Enter a value: yes aws_instance.example: Modifying... [id=i-079b8300c42bea5c3] aws_instance.example: Still modifying... [id=i-079b8300c42bea5c3, 10s elapsed] aws_instance.example: Still modifying... [id=i-079b8300c42bea5c3, 20s elapsed] aws_instance.example: Still modifying... [id=i-079b8300c42bea5c3, 30s elapsed] aws_instance.example: Still modifying... [id=i-079b8300c42bea5c3, 40s elapsed] aws_instance.example: Still modifying... [id=i-079b8300c42bea5c3, 50s elapsed] aws_instance.example: Still modifying... [id=i-079b8300c42bea5c3, 1m0s elapsed] aws_instance.example: Modifications complete after 1m0s [id=i-079b8300c42bea5c3] Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
See also
terraform apply
[-auto-approve
|-refresh-only, -destroy | --help ]
, Terraform examples,Still creating...
, Terraform apply examples with errorsterraform
[untaint | fmt
|apply
|show
|state
|init | plan | console | output
|validate
|destroy
|debug
|import
|providers
|get
|graph
|workspaces
|resource
|login
|-var-file
|state mv
|state pull
|state push
|state replace-provider
|state rm
|force-unlock
|env
|tfe
|--version
|remote-exec
|delete on termination
| deprecated commands |terraform --help
]
Advertising: