An open API service indexing awesome lists of open source software.

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

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 |