https://github.com/labd/terraform-aws-mach-shared
Module to provision a 'shared' AWS account to use in a MACH stack
https://github.com/labd/terraform-aws-mach-shared
Last synced: 3 months ago
JSON representation
Module to provision a 'shared' AWS account to use in a MACH stack
- Host: GitHub
- URL: https://github.com/labd/terraform-aws-mach-shared
- Owner: labd
- License: mit
- Created: 2021-03-01T08:51:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-10T19:20:16.000Z (about 5 years ago)
- Last Synced: 2025-07-12T19:48:17.355Z (12 months ago)
- Language: HCL
- Size: 3.91 KB
- Stars: 0
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS shared Infra module
To provision a 'shared' AWS account.
[More information](https://docs.machcomposer.io/tutorial/aws/step-3-setup-aws-services.html) on how to setup your AWS environment for MACH.
### Resources created
- IAM 'upload lambda' role
- 'component repository' S3 bucket
- Policies to read and/or deploy from/to the component repository
## Usage
```
module "shared_infra" {
source = "git::https://github.com/labd/terraform-aws-mach-shared.git"
code_repo_name = "your-project-lambdas"
allow_code_repo_read_access = [
"arn:aws:iam::000000000:user/mach-user", # MACH Test env
]
}
```
### Variables
| name | required | description |
| ----------------------------- | -------- | --------------------------------------------------------------------- |
| `code_repo_name` | * | Name of code repository, for example your-project-lambdas |
| `code_repo_upload_role_name` | | Name of the code repository upload IAM role |
| `allow_code_repo_read_access` | | ARNs of entities that should be able to read from the code repository |
| `allow_assume_deploy_role` | | ARNs of entities that should be able to upload to the code repository |