https://github.com/byjg/terraform-localstack
Apply a terraform plan on Localstack
https://github.com/byjg/terraform-localstack
Last synced: 8 months ago
JSON representation
Apply a terraform plan on Localstack
- Host: GitHub
- URL: https://github.com/byjg/terraform-localstack
- Owner: byjg
- Created: 2021-01-11T22:55:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-12T02:39:50.000Z (over 4 years ago)
- Last Synced: 2024-10-19T13:36:06.296Z (12 months ago)
- Language: HCL
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# terraform-localstack
Apply a terraform plan on Localstack
## Instructions
Change the `docker-compose.yaml` to add the desired services.
The new localstack exposes the port 4566 for all services.
```
docker-compose up -d
```## Testing if the connection is working:
```
export AWS_ACCESS_KEY_ID=foo
export AWS_SECRET_ACCESS_KEY=bar
export AWS_REGION=us-east-1aws --endpoint-url=http://localhost:4566 s3 mb s3://local-bucket
aws --endpoint-url=http://localhost:4566 s3 ls
```## Run the terraform plan/apply
To run the example provided just do:
```
terraform init
terraform plan
terraform apply
```## References
* https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/custom-service-endpoints#localstack
* https://github.com/localstack/localstack