FormidableLabs / FormidableLabs/terraform-aws-serverless

IAM: Lockdown APIGW more.

Open
#8 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
HCL
Stars
142
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Our APIGW IAM ARNs are presently:

```
# - No partition. TODO_CHECK (has to be AWS?)
# - No account. TODO_CHECK
# eg arn:aws:apigateway:us-east-1::/restapis/ibln8d639e/deployments
sls_apigw_arn = "arn:aws:apigateway:${local.iam_region}:*:/restapis*"
```

with wildcards because they don't correspond to predictable names. You only get the name _after_ your do a sls deploy, which present s a chicken-vs-egg problem.

Task
- [ ] Research options to limit this more. Potentially doing a post-sls-deploy `terraform apply` with new variable that limits this more _from_ sls
- [ ] Documentation

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.