aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap

Support principal org ID as a psuedo parameter

Open
#2,186 2 comments 1 reaction 0 assignees View on GitHub
NeedTriage other
Dominant language
No language data
Stars
1.1k
Forks
62
PR merge metrics
No merged PRs in 30d

Description

### Resource Name

_No response_

### Details

In my organisation we commonly produce stacks containing resources that are designed to be accessed by any account in our AWS organisation. Currently we achieve this by hardcoding our principal organisation ID in IAM resource policy conditions, for example.

It would be easier for us if we could achieve this with the use of psuedo parameters, e.g.
```yaml
Statement:
- Effect: Allow
Principal:
AWS: "*"
Action:
- sqs:SendMessage
Resource:
- !GetAtt Queue.Arn
Condition:
StringEquals:
aws:PrincipalOrgID: !Sub "{AWS::PrincipalOrgId}"
```

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.