Skip to content

Commit

Permalink
Merge pull request #757 from PRX/organization-policy-variable
Browse files Browse the repository at this point in the history
Use policy variable for organization access
  • Loading branch information
farski authored Apr 22, 2024
2 parents e41a545 + 8fa6a85 commit b4c03f0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spire/templates/apps/dovetail-cdn-arranger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Resources:
- Action: s3:GetObject
Condition:
StringEquals:
aws:PrincipalOrgID: !Ref AwsOrganizationId
aws:ResourceOrgID: ${aws:PrincipalOrgID}
Effect: Allow
Principal:
AWS: "*"
Expand Down
1 change: 0 additions & 1 deletion spire/templates/root.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ Resources:
RootStackName: !Ref AWS::StackName
RootStackId: !Ref AWS::StackId
EnvironmentType: !Ref EnvironmentType
AwsOrganizationId: !Ref AwsOrganizationId
NestedChangeSetScrubbingResourcesState: !Ref NestedChangeSetScrubbingResourcesState
Tags:
- { Key: prx:meta:tagging-version, Value: "2021-04-07" }
Expand Down
3 changes: 1 addition & 2 deletions spire/templates/shared-dovetail-kinesis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Parameters:
EnvironmentType: { Type: String }
RootStackName: { Type: String }
RootStackId: { Type: String }
AwsOrganizationId: { Type: String }
NestedChangeSetScrubbingResourcesState: { Type: String }

Conditions:
Expand Down Expand Up @@ -51,7 +50,7 @@ Resources:
- Action: sts:AssumeRole
Condition:
StringEquals:
aws:PrincipalOrgID: !Ref AwsOrganizationId
aws:ResourceOrgID: ${aws:PrincipalOrgID}
Effect: Allow
Principal:
AWS: "*"
Expand Down

0 comments on commit b4c03f0

Please sign in to comment.