Update Infrastructure

Let’s update the infrastructure.

$ terraspace up demo

Terraspace will show you a preview of the changes and prompt you to update the infrastructure.

$ terraspace up demo
Building .terraspace-cache/us-west-2/dev/stacks/demo
Current directory: .terraspace-cache/us-west-2/dev/stacks/demo
=> terraform init -get -input=false >> /tmp/terraspace/log/init/demo.log
Built in .terraspace-cache/us-west-2/dev/stacks/demo
=> terraform apply
random_pet.bucket: Refreshing state... [id=liked-poodle]
module.bucket.aws_s3_bucket.this: Refreshing state... [id=bucket-liked-poodle]

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # module.bucket.aws_s3_bucket_acl.this will be updated in-place
  ~ resource "aws_s3_bucket_acl" "this" {
      ~ acl    = "private" -> "public-read"
        id     = "bucket-liked-poodle,private"
        # (1 unchanged attribute hidden)

        # (1 unchanged block 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:

Once again, we shown what will change and prompted to Enter a value:. Type yes and press enter.

  Enter a value: yes

module.bucket.aws_s3_bucket_acl.this: Modifying... [id=bucket-liked-poodle,private]
module.bucket.aws_s3_bucket_acl.this: Modifications complete after 1s [id=bucket-liked-poodle,public-read]

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

Outputs:

bucket_name = bucket-liked-poodle
$

The modification has been applied.

Next, we’ll destroy the infrastructure.

More tools: