Configure and Deploy via S3¶
Set the Environment Variables¶
Clone the repository and execute:
$~ cd examples/s3
$~ cp .env-example .env
# Add your values to the required variables
$~ vi .env
# Load the environment variables
$~ source .env
Configure the Integration¶
Edit examples/s3/main.tf as explained below
module "main" {
source = "../.."
<!-- Set the AWS Account Region field to match youre region -->
aws_account_region = "eu-west-2"
<!-- Set S3 bucket name. Must be unique within the specified AWS region -->
s3_bucket_name = "test-bucket"
}
Usage¶
# Initialize the terraform providers
$~ terraform init
# Preview the changes that terraform plans to make to your infrastructure
$~ terraform plan
# Deploy (--auto-approve to avoid being prompted to confirm the changes)
$~ terraform apply