Skip to content

Commit

Permalink
adding additional cli params to smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPates committed Jan 23, 2023
1 parent 878ff00 commit c00ad05
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
19 changes: 15 additions & 4 deletions cicd/cloudformation/developer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ Resources:
InputArtifacts:
- Name: Built
- Name: Source
- Name: Test
- Name: Prep
Actions:
- Name: Staging
- Name: Publish
Namespace: RC
ActionTypeId:
Category: Build
Expand Down Expand Up @@ -760,11 +760,22 @@ Resources:
- 'lambda:invokeFunction'
Effect: Allow
Resource: '*'
- Action:
- "identitystore:DeleteUser"
- "identitystore:CreateGroup"
- "identitystore:CreateGroupMembership"
- "identitystore:ListGroups"
- "identitystore:ListUsers"
- "identitystore:ListGroupMemberships"
- "identitystore:IsMemberInGroups"
- "identitystore:GetGroupMembershipId"
- "identitystore:DeleteGroupMembership"
Effect: Allow
Resource: '*'
- Action:
- "secretsmanager:Get*"
Resource:
- "*"
Effect: Allow
Resource: '*'

CloudFormationDeployerRole:
Type: AWS::IAM::Role
Expand Down
4 changes: 3 additions & 1 deletion cicd/tests/smoke/cli/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ env:
GoogleAdminEmail: TestGoogleAdminEmail
SCIMEndpointUrl: TestSCIMEndpointUrl
SCIMAccessToken: TestSCIMAccessToken
IdentityStoreID: TestIdentityStoreId
Region: TestRegion

phases:
pre_build:
Expand All @@ -18,4 +20,4 @@ phases:
- aws secretsmanager get-secret-value --secret-id=TestGoogleCredentials --query SecretString --output text | jq '.' > credentials.json
- cat credentials.json

- ./ssosync -t "${SCIMAccessToken}" -e "${SCIMEndpointUrl}" -u "${GoogleAdminEmail}" -s "groups" -g "name:AWS*"
- ./ssosync -t "${SCIMAccessToken}" -e "${SCIMEndpointUrl}" -u "${GoogleAdminEmail}" -i "${IdentityStoreID}" -r "${Region}" -s "groups" -g "name:AWS*"

0 comments on commit c00ad05

Please sign in to comment.