This terraform script provisions S3 buckets to store logs from an AWS cloud infrastructure
This terraform script provisions S3 buckets to store logs from an AWS cloud infrastructure
Clone this repo.
You can specify a variable file or just continue below and answer the Terraform prompts for variables.
Initialize Terraform wuth terraform init
Run Terraform with terraform apply
If there are any errors due to timeouts or other weird stuff, try to run again
terraform apply
Here is an example terraform.tfvars
file
/**
* General variables
*/
organization_name = "acme"
/**
* AWS Variables
*/
aws_profile = "acme" // This profile was initiated when I installed the AWS Cli
aws_default_region = "us-east-1"
aws_account_id = "11111111"
aws_role_name = "OrganizationAccountAccessRole"
/**
* Terraform Cloud Variables
*/
tfe_organization = "acme"
tfe_workspace = "audit"