fix(iam): allow door-unlock apply to create api domain (#126)
Some checks are pending
Deploy / deploy-management (push) Waiting to run
Deploy / deploy-external-dev (push) Waiting to run
Deploy / deploy-security (push) Waiting to run
Deploy / deploy-dev (push) Waiting to run
Deploy / deploy-prod (push) Waiting to run

CreateDomainName authorizes against the /domainnames collection, so the hostname-pinned ARN cannot complete first apply.
This commit is contained in:
Adam Moussa 2026-08-27 22:43:48 +00:00 • committed by GitHub
parent 28a064966b
commit 23d954369d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2387,6 +2387,14 @@ Resources:
- !Sub "arn:aws:apigateway:us-east-1::/apis"
- !Sub "arn:aws:apigateway:us-east-1::/apis/*"
- !Sub "arn:aws:apigateway:us-east-1::/tags/*"
# CreateDomainName POSTs to the collection ARN. Hostname ARNs
# cover Get/Update/Delete and apiMappings after create.
- Sid: HttpApiDomainCreate
Effect: Allow
Action:
- apigateway:POST
Resource:
- arn:aws:apigateway:us-east-1::/domainnames
- Sid: HttpApiDomain
Effect: Allow
Action: