mirror of
https://github.com/ghndrx/terraform.git
synced 2026-02-10 14:55:06 +00:00
TODO: fix efs later. s3 backend created
This commit is contained in:
24
aws/s3/main.tf
Normal file
24
aws/s3/main.tf
Normal file
@@ -0,0 +1,24 @@
|
||||
# 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
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user