Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 670 Bytes

README.md

File metadata and controls

37 lines (30 loc) · 670 Bytes

tf-static-s3

Install Terraform

wget https://releases.hashicorp.com/terraform/0.15.4/terraform_0.15.4_linux_amd64.zip
unzip terraform_0.15.4_linux_amd64.zip
rm terraform_0.15.4_linux_amd64.zip
echo $"export PATH=\$PATH:$(pwd)" >> ~/.bash_profile
source ~/.bash_profile

Installation

wget https://github.com/msokolov93/tf-static-s3/archive/refs/heads/main.zip
unzip main.zip
rm main.zip

Setup

In main.tf file:

  • add key
  • add private key
  • change bucket name

In policy.json file:

  • change bucket name

Run the Solution

terraform init
terraform plan
terraform apply

Good luck! Keep an eye for quarantine v2 policies for your IAM permissions.