Difference between revisions of "Terraform resource: aws s3 bucket website configuration"
Jump to navigation
Jump to search
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | * <code>[[aws_s3_bucket_website_configuration]]</code> https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_website_configuration | |
− | * https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_website_configuration | ||
+ | * [[Terraform module]]:<code>[[Terraform module: s3-bucket|s3-bucket]]</code> | ||
− | == | + | |
+ | [[redirect_all_requests_to]] | ||
+ | |||
+ | == Official example == | ||
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_website_configuration | https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_website_configuration | ||
Line 27: | Line 30: | ||
} | } | ||
+ | Terraform-kubernetes-django example: | ||
+ | * https://github.com/djangoflow/terraform-kubernetes-django/blob/main/modules/aws/storage.tf | ||
− | + | == Attributes output reference == | |
− | |||
− | Attributes output | ||
* <code>[[website_endpoint]]</code> | * <code>[[website_endpoint]]</code> | ||
− | * [[website_domain]]: [[s3-website-eu-west-1]].[[amazonaws.com]] | + | * <code>[[website_domain]]: [[s3-website-eu-west-1]].[[amazonaws.com]]</code> |
== Related == | == Related == | ||
* [[Cloudflare]] | * [[Cloudflare]] | ||
* <code>[[count.index]]</code> | * <code>[[count.index]]</code> | ||
+ | * [[AWS website endpoint]] | ||
+ | * <code>[[aws_s3_bucket_cors_configuration]]</code> | ||
+ | * [[aws_s3_bucket]] | ||
== See also == | == See also == | ||
− | * {{ | + | * {{tf s3}} |
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 11:49, 8 March 2024
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[edit]
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/" } } }
Terraform-kubernetes-django example:
Attributes output reference[edit]
Related[edit]
See also[edit]
- 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: