Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov-aws committed Aug 31, 2023
1 parent 37f32a4 commit d438f59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cfn-templates/cid-cfn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ Conditions:
NeedQuickSightDataSourceRole:
Fn::And:
- !Condition NeedDatasource
- [!Equals [ !Ref QuickSightDataSourceRoleName, "CidQuickSightDataSourceRole" ]]
- !Equals [ !Ref QuickSightDataSourceRoleName, "CidQuickSightDataSourceRole" ]
NeedQuickSightDataSourceRoleAndCUR:
Fn::And:
- !Condition NeedQuickSightDataSourceRole
Expand Down Expand Up @@ -1146,7 +1146,7 @@ Resources:
DataSourceParameters:
AthenaParameters:
WorkGroup: !If [ NeedAthenaWorkgroup, !Ref MyAthenaWorkGroup, !Ref AthenaWorkgroup ]
RoleArn: !If [ UseQuickSightDataSourceRole, !Sub "arn:aws:iam::${AWS::AccountId}:role/${QuickSightDataSourceRole}", !Ref AWS::NoValue ]
RoleArn: !If [ UseQuickSightDataSourceRole, !Sub "arn:aws:iam::${AWS::AccountId}:role/${QuickSightDataSourceRoleName}", !Ref AWS::NoValue ]
Permissions:
- Actions:
- 'quicksight:DescribeDataSource'
Expand Down
3 changes: 2 additions & 1 deletion cfn-templates/tests/test_deploy_with_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def create_cid_as_finops():
logger.info('Stack created')

logger.info('As Finops Creating Dashboards')
finops_cfn.create_stack(
res = finops_cfn.create_stack(
StackName="Cloud-Intelligence-Dashboards",
TemplateURL=upload_to_s3('cfn-templates/cid-cfn.yml'),
Parameters=[
Expand All @@ -239,6 +239,7 @@ def create_cid_as_finops():
],
Capabilities=['CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM'],
)
print(res)
watch_stacks(admin_cfn, ["Cloud-Intelligence-Dashboards"])
logger.info('Stack created')

Expand Down

0 comments on commit d438f59

Please sign in to comment.