https://github.com/ironcore864/terraform-lambda-edge-s3
https://github.com/ironcore864/terraform-lambda-edge-s3
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ironcore864/terraform-lambda-edge-s3
- Owner: IronCore864
- Created: 2019-10-09T09:31:08.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-09T09:31:55.000Z (almost 7 years ago)
- Last Synced: 2025-06-06T02:03:52.315Z (about 1 year ago)
- Language: HCL
- Size: 1000 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TF S3 for Lambda Edge
Creates an S3 bucket in us-east-1 region, used for storing zip files for lambda edge functions.
## Dir Structure
```
.
├── README.md
├── dev
│ ├── config.tf
│ ├── output.tf
│ ├── s3.tf
│ └── variables.tf
└── prod
```
## Config
Go to corresponding environment (for example, `cd dev`)
Use your favourite text editor to open `config.tf`, and update:
- bucket
- dynamodb_table
from the `terraform backend "s3"` section.
Note that the s3 bucket and dynamodb table used here must already exist before using this terraform repo.
## Adding Another Environment
Copy the `dev` folder to another name for your new environment (for example, `staging`), and update `variables.tf` accordingly.
## Deploy
Go to corresponding environment (for example, `cd dev`)
```
tf plan -o tfplan
tf apply tfplan
```