Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
Merge 9cd63ef into 1d2fe14
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-tyler authored Apr 25, 2023
2 parents 1d2fe14 + 9cd63ef commit 4ff70ab
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1227,3 +1227,8 @@ Outputs:
Description: Route53 hosted zone
Condition: isAppStreamAndCustomDomain
Value: !Ref Route53HostedZone

S3VpcEndpoint:
Description: S3 interface endpoint
Condition: isAppStream
Value: !Ref S3Endpoint
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,18 @@ Resources:
Action:
- 'sts:AssumeRole'
Resource: 'arn:aws:iam::*:role/swb-*'
- Effect: Deny
Action: '*'
Resource: '*'
Condition:
StringNotEquals:
aws:Ec2InstanceSourceVPC: "${aws:SourceVpc}"
aws:ec2InstanceSourcePrivateIPv4: "${aws:VpcSourceIp}"
BoolIfExists:
aws:ViaAWSService: "false"
'Null':
aws:ec2InstanceSourceVPC: "false"

IAMRole:
Type: 'AWS::IAM::Role'
Properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,17 @@ Resources:
Action:
- 'sts:AssumeRole'
Resource: 'arn:aws:iam::*:role/swb-*'
- Effect: Deny
Action: '*'
Resource: '*'
Condition:
StringNotEquals:
aws:Ec2InstanceSourceVPC: "${aws:SourceVpc}"
aws:ec2InstanceSourcePrivateIPv4: "${aws:VpcSourceIp}"
BoolIfExists:
aws:ViaAWSService: "false"
'Null':
aws:ec2InstanceSourceVPC: "false"
IAMRole:
Type: 'AWS::IAM::Role'
Properties:
Expand Down

0 comments on commit 4ff70ab

Please sign in to comment.