Closed IanEdington closed 2 months ago
❯ tofu plan -out=plan
aws_dynamodb_table.terraform_state_locks: Refreshing state... [id=terraform-state-locks]
aws_s3_bucket.terraform_state: Refreshing state... [id=gpo-terraform-state]
module.default_github_labels_for_readme.github_issue_labels.labels: Refreshing state... [id=readme]
github_actions_secret.gpo_ca_SSH_PUBLIC_KEY: Refreshing state... [id=gpo.ca:SSH_PUBLIC_KEY]
github_actions_secret.SSH_HOST_PROD: Refreshing state... [id=secure.gpo.ca:SSH_HOST_PROD]
github_actions_secret.gpo_ca_SSH_HOST_PROD2: Refreshing state... [id=gpo.ca:SSH_HOST_PROD2]
github_actions_secret.gpo_ca_SSH_HOST_STAGE: Refreshing state... [id=gpo.ca:SSH_HOST_STAGE]
github_actions_secret.SSH_HOST_STAGE: Refreshing state... [id=secure.gpo.ca:SSH_HOST_STAGE]
github_actions_secret.SSH_PRIVATE_KEY: Refreshing state... [id=secure.gpo.ca:SSH_PRIVATE_KEY]
github_actions_secret.SSH_USER: Refreshing state... [id=secure.gpo.ca:SSH_USER]
github_actions_secret.gpo_ca_SSH_HOST_PROD1: Refreshing state... [id=gpo.ca:SSH_HOST_PROD1]
github_actions_secret.SSH_PUBLIC_KEY: Refreshing state... [id=secure.gpo.ca:SSH_PUBLIC_KEY]
github_actions_secret.gpo_ca_SSH_USER: Refreshing state... [id=gpo.ca:SSH_USER]
github_actions_secret.gpo_ca_SSH_PRIVATE_KEY: Refreshing state... [id=gpo.ca:SSH_PRIVATE_KEY]
module.default_github_labels_for_gpo_ca.github_issue_labels.labels: Refreshing state... [id=gpo.ca]
module.default_github_labels_for_gpo_platform_configs.github_issue_labels.labels: Refreshing state... [id=gpo-platform-configs]
module.default_github_labels_for_secure_gpo_ca.github_issue_labels.labels: Refreshing state... [id=secure.gpo.ca]
aws_s3_bucket_versioning.terraform_state_bucket_versioning: Refreshing state... [id=gpo-terraform-state]
aws_s3_bucket_server_side_encryption_configuration.terraform_state_crypto_conf: Refreshing state... [id=gpo-terraform-state]
OpenTofu used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
OpenTofu will perform the following actions:
# digitalocean_spaces_bucket.drupal will be created
+ resource "digitalocean_spaces_bucket" "drupal" {
+ acl = "private"
+ bucket_domain_name = (known after apply)
+ endpoint = (known after apply)
+ force_destroy = false
+ id = (known after apply)
+ name = "drupal"
+ region = "nyc3"
+ urn = (known after apply)
}
# digitalocean_spaces_bucket_policy.example_policy will be created
+ resource "digitalocean_spaces_bucket_policy" "example_policy" {
+ bucket = "drupal"
+ id = (known after apply)
+ policy = jsonencode(
{
+ Statement = [
+ {
+ Action = "s3:GetObject"
+ Effect = "Deny"
+ Principal = "*"
+ Resource = "arn:aws:s3:::drupal/private/*"
+ Sid = "PrivateAccess"
},
]
+ Version = "2012-10-17"
}
)
+ region = "nyc3"
}
Plan: 2 to add, 0 to change, 0 to destroy.
❯ tofu apply "plan"
digitalocean_spaces_bucket.drupal: Creating...
digitalocean_spaces_bucket.drupal: Still creating... [10s elapsed]
digitalocean_spaces_bucket.drupal: Still creating... [20s elapsed]
digitalocean_spaces_bucket.drupal: Still creating... [30s elapsed]
digitalocean_spaces_bucket.drupal: Creation complete after 31s [id=drupal]
digitalocean_spaces_bucket_policy.example_policy: Creating...
digitalocean_spaces_bucket_policy.example_policy: Creation complete after 0s [id=drupal]
Apply complete! Resources: 2 added, 0 changed, 0 destroyed.