Create IAM resources that allow you to deploy a static website into an S3 bucket.
Variable | Type | Example | Description |
---|---|---|---|
bucket_name |
string |
my-website-bucket |
(required) The name of the S3 bucket to deploy into. |
deployer_name |
string |
mywebsite-deployer |
(required) The name for this deployer. |
Using the module:
module "static_website_deployer" {
source = "git::https://github.com/aaronchu/acsf-aws-deployer-s3.git"
deployer_name = "github-actions-mydomainname-website"
bucket_name = "mydomainname-static-website"
providers = {
aws = aws.use1
}
}
To create a provider in us-east-1
:
provider "aws" {
alias = "use1"
region = "us-east-1"
allowed_account_ids = ["YOUR_ACCOUNT_ID"]
assume_role {
role_arn = "arn:aws:iam::YOUR_ACCOUNT_ID:role/YOUR_TERRAFORM_ROLE"
session_name = "Terraform"
duration = "1h"
}
}
Name | Version |
---|---|
terraform | >= 1.5.7 |
aws | ~> 5.0 |
aws
(see requirements)
- Intended for hobbyist use only.
- You need to create the AWS IAM key and secret separately, managed outside of this module.
- Built with
terraform
version1.5.x
and intent to move toopentofu
eventually.