mirror of
https://github.com/ghndrx/terraform.git
synced 2026-02-10 06:45:01 +00:00
25 lines
396 B
HCL
25 lines
396 B
HCL
# Provider configuration
|
|
provider "aws" {
|
|
region = "us-west-2"
|
|
# Add your AWS access and secret keys here
|
|
|
|
}
|
|
|
|
resource "aws_s3_bucket" "my-tf-bucket-ghndrx" {
|
|
bucket = "my-tf-bucket-ghndrx"
|
|
|
|
tags = {
|
|
Name = "tf-backend"
|
|
Environment = "production"
|
|
}
|
|
}
|
|
|
|
# Output the bucket name
|
|
output "my-tf-bucket-ghndrx" {
|
|
value = aws_s3_bucket.my-tf-bucket-ghndrx.bucket
|
|
}
|
|
|
|
|
|
|
|
|