Difference between revisions of "Terraform resource: aws s3 bucket website configuration"
Jump to navigation
Jump to search
Line 41: | Line 41: | ||
== See also == | == See also == | ||
* {{tf s3}} | * {{tf s3}} | ||
− | |||
[[Category:AWS]] | [[Category:AWS]] |
Revision as of 08:17, 3 September 2023
aws_s3_bucket_website_configuration
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_website_configuration
redirect_all_requests_to
Official example
resource "aws_s3_bucket_website_configuration" "example" { bucket = aws_s3_bucket.example.bucket index_document { suffix = "index.html" } error_document { key = "error.html" } routing_rule { condition { key_prefix_equals = "docs/" } redirect { replace_key_prefix_with = "documents/" } } }
Attributes output reference
Related
See also
- Terraform S3 resources:
aws_s3_bucket, aws_s3_object, aws_s3_bucket_policy, aws_s3_bucket_acl, aws_s3_bucket_website_configuration, aws_s3_bucket cors_configuration, aws_s3_account_public_access_block
, Terraform module: s3-bucket,aws_s3_bucket_versioning, aws_s3_bucket_server_side_encryption_configuration, aws_s3_bucket_logging
Advertising: