Terraform state show aws s3 bucket.MYexample

From wikieduonline
Jump to navigation Jump to search
tf state show aws_s3_bucket.data2
# aws_s3_bucket.data2:
resource "aws_s3_bucket" "data2" {
    arn                         = "arn:aws:s3:::data2"
    bucket                      = "data2"
    bucket_domain_name          = "data2.s3.amazonaws.com"
    bucket_regional_domain_name = "data2.s3.us-east-1.amazonaws.com"
    force_destroy               = false
    hosted_zone_id              = "Z3AQBSTGFYJSTF"
    id                          = "data2"
    object_lock_enabled         = false
    region                      = "us-east-1"
    request_payer               = "BucketOwner"
    tags                        = {
        "Environment" = "Dev"
        "Name"        = "data2"
    }
    tags_all                    = {
        "Environment" = "Dev"
        "Name"        = "data2"
    }

    grant {
        id          = "75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a"
        permissions = [
            "FULL_CONTROL",
        ]
        type        = "CanonicalUser"
    }

    server_side_encryption_configuration {
        rule {
            bucket_key_enabled = false

            apply_server_side_encryption_by_default {
                sse_algorithm = "AES256"
            }
        }
    }

    versioning {
        enabled    = false
        mfa_delete = false
    }
}


Terraform s3: aws_s3_bucket, aws_s3_bucket_notification

Advertising: