Skip to content

Commit

Permalink
may actuakly be the vars context and not env
Browse files Browse the repository at this point in the history
  • Loading branch information
tmclaugh committed Jan 30, 2025
1 parent 7758f1b commit 69d454f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ jobs:
with:
aws_account_id: ${{ secrets.AWS_MANAGEMENT_ACCOUNT_ID }}
template_file: packaged-template.yaml
env_json: ${{ toJson(env) }}
env_json: ${{ toJson(vars) }}
secrets_json: ${{ toJson(secrets) }}
22 changes: 21 additions & 1 deletion stacksets/cfn-event-producers/stackset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,24 @@ Resources:
State: "ENABLED"
Targets:
- Id: MonitoringBus
Arn: !Sub "arn:aws:events:${EventBusRegion}:${EventBusAccount}:event-bus/${EventBusName}"
Arn: !Sub "arn:aws:events:${EventBusRegion}:${EventBusAccount}:event-bus/${EventBusName}"
RoleArn: !GetAtt CfnEventsRole.Arn

CfnEventsRole:
Type: 'AWS::IAM::Role'
Properties:
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: 'Allow'
Principal:
Service: 'events.amazonaws.com'
Action: 'sts:AssumeRole'
Policies:
- PolicyName: 'PutEventsPolicy'
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: 'Allow'
Action: 'events:PutEvents'
Resource: !Sub "arn:aws:events:${EventBusRegion}:${EventBusAccount}:event-bus/${EventBusName}"

0 comments on commit 69d454f

Please sign in to comment.