Skip to content

Commit 971e99d

Browse files
committed
Template Fixes
1 parent c531655 commit 971e99d

File tree

3 files changed

+11
-157
lines changed

3 files changed

+11
-157
lines changed

cicd/build/package/release.patch

+2-73
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
1-
--- template.yaml 2023-10-27 14:15:25
2-
+++ release.yaml 2023-10-27 14:41:17
3-
@@ -11,7 +11,7 @@
4-
- SCIMEndpointAccessToken
5-
- IdentityStoreId
6-
- Label:
7-
- default: Google Workspace Credentials
8-
+ default: Google Workspace Credentials
9-
Parameters:
10-
- GoogleAdminEmail
11-
- GoogleCredentials
1+
--- template.yaml 2023-10-27 16:02:11
2+
+++ release.yaml 2023-10-27 16:06:09
123
@@ -36,7 +36,7 @@
134
- ScheduleExpression
145

@@ -18,65 +9,3 @@
189
Description: Helping you populate AWS SSO directly with your Google Apps users.
1910
Author: Sebastian Doell
2011
SpdxLicenseId: Apache-2.0
21-
@@ -113,13 +113,11 @@
22-
Description: |
23-
Google Workspace user filter query parameter, example: 'name:John* email:admin*', see: https://developers.google.com/admin-sdk/directory/v1/guides/search-users
24-
Default: '*'
25-
- AllowedPattern: "(*)|(name|Name|NAME)(:([a-zA-Z0-9]{1,64})(\*))|(name|Name|NAME)(=([a-zA-Z0-9 ]{1,64}))|(email|Email|EMAIL)(:([a-zA-Z0-9.-_]{1,64})(\*))|(email|Email|EMAIL)(=([a-zA-Z0-9.-_]{1,64})@([a-zA-Z0-9.-]{5,260}))"
26-
GoogleGroupMatch:
27-
Type: String
28-
Description: |
29-
Google Workspace group filter query parameter, example: 'name:Admin* email:aws-*', see: https://developers.google.com/admin-sdk/directory/v1/guides/search-groups
30-
Default: 'name:AWS*'
31-
- AllowedPattern: "((name|Name|NAME)(:([a-zA-Z0-9]{1,64})\*)|(name|Name|NAME)(=([a-zA-Z0-9 ]{1,64})))|((email|Email|EMAIL)(:([a-zA-Z0-9.-_]{1,64})\*)|(email|Email|EMAIL)(=([a-zA-Z0-9.-_]{1,64})@([a-zA-Z0-9.-]{5,260})))"
32-
IgnoreGroups:
33-
Type: String
34-
Description: |
35-
@@ -132,7 +130,7 @@
36-
Default: 'none'
37-
IncludeGroups:
38-
Type: String
39-
- Description: |
40-
+ Description: |
41-
Include only these Google Workspace groups. (Only applicable for SyncMethod user_groups)
42-
Default: '*'
43-
SyncMethod:
44-
@@ -142,16 +140,16 @@
45-
AllowedValues:
46-
- groups
47-
- users_groups
48-
+
49-
+
50-
+
51-
52-
-
53-
-
54-
-
55-
Resources:
56-
SSOSyncFunction:
57-
Type: AWS::Serverless::Function
58-
Properties:
59-
Runtime: provided.al2
60-
- Handler: dist/ssosync_linux_arm64/ssosync
61-
+ Handler: bootstrap
62-
Architectures:
63-
- arm64
64-
Timeout: !Ref TimeOut
65-
@@ -184,8 +182,6 @@
66-
- !Ref AWSSCIMAccessTokenSecret
67-
- !Ref AWSRegionSecret
68-
- !Ref AWSIdentityStoreIDSecret
69-
- - Version: '2012-10-17'
70-
- Statement:
71-
- Sid: IdentityStoreAccesPolicy
72-
Effect: Allow
73-
Action:
74-
@@ -214,8 +210,6 @@
75-
Properties:
76-
Enabled: true
77-
Schedule: !Ref ScheduleExpression
78-
- Metadata:
79-
- BuildMethod: makefile
80-
81-
AWSGoogleCredentialsSecret:
82-
Type: "AWS::SecretsManager::Secret"

cicd/build/package/staging.patch

+6-72
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
1-
--- template.yaml 2023-10-27 14:15:25
2-
+++ staging.yaml 2023-10-27 14:15:30
3-
@@ -11,7 +11,7 @@
4-
- SCIMEndpointAccessToken
5-
- IdentityStoreId
6-
- Label:
7-
- default: Google Workspace Credentials
8-
+ default: Google Workspace Credentials
9-
Parameters:
10-
- GoogleAdminEmail
11-
- GoogleCredentials
1+
--- template.yaml 2023-10-27 16:02:11
2+
+++ staging.yaml 2023-10-27 16:04:04
123
@@ -36,7 +36,7 @@
134
- ScheduleExpression
145

@@ -18,75 +9,18 @@
189
Description: Helping you populate AWS SSO directly with your Google Apps users.
1910
Author: Sebastian Doell
2011
SpdxLicenseId: Apache-2.0
21-
@@ -132,7 +132,7 @@
22-
Default: 'none'
23-
IncludeGroups:
24-
Type: String
25-
- Description: |
26-
+ Description: |
27-
Include only these Google Workspace groups. (Only applicable for SyncMethod user_groups)
28-
Default: '*'
29-
SyncMethod:
30-
@@ -142,16 +142,17 @@
31-
AllowedValues:
32-
- groups
33-
- users_groups
34-
+
35-
+
36-
+
37-
38-
-
39-
-
40-
-
41-
Resources:
12+
@@ -147,6 +147,7 @@
4213
SSOSyncFunction:
4314
Type: AWS::Serverless::Function
4415
Properties:
4516
+ FunctionName: SSOSyncFunction
4617
Runtime: provided.al2
47-
- Handler: dist/ssosync_linux_arm64/ssosync
48-
+ Handler: bootstrap
18+
Handler: bootstrap
4919
Architectures:
50-
- arm64
51-
Timeout: !Ref TimeOut
52-
@@ -184,8 +185,6 @@
53-
- !Ref AWSSCIMAccessTokenSecret
54-
- !Ref AWSRegionSecret
55-
- !Ref AWSIdentityStoreIDSecret
56-
- - Version: '2012-10-17'
57-
- Statement:
58-
- Sid: IdentityStoreAccesPolicy
59-
Effect: Allow
60-
Action:
61-
@@ -207,15 +206,6 @@
62-
- codepipeline:PutJobSuccessResult
63-
- codepipeline:PutJobFailureResult
64-
Resource: "*"
65-
- Events:
66-
- SyncScheduledEvent:
67-
- Type: Schedule
68-
- Name: AWSSyncSchedule
69-
- Properties:
70-
- Enabled: true
71-
- Schedule: !Ref ScheduleExpression
72-
- Metadata:
73-
- BuildMethod: makefile
74-
75-
AWSGoogleCredentialsSecret:
76-
Type: "AWS::SecretsManager::Secret"
77-
@@ -245,10 +235,17 @@
78-
Type: "AWS::SecretsManager::Secret"
79-
Properties:
80-
Name: SSOSyncRegion
81-
- SecretString: !Select [1, !Split [".", !Ref SCIMEndpointUrl]]
82-
+ SecretString: !Ref Region
83-
84-
AWSIdentityStoreIDSecret:
85-
Type: "AWS::SecretsManager::Secret"
20+
@@ -246,3 +247,10 @@
8621
Properties:
8722
Name: SSOSyncIdentityStoreID
88-
- SecretString: !Ref IdentityStoreID
89-
+ SecretString: !Select [1, !Split [".", !Ref SCIMEndpointUrl]]
23+
SecretString: !Ref IdentityStoreID
9024
+
9125
+Outputs:
9226
+ FunctionArn:

template.yaml

+3-12
Original file line numberDiff line numberDiff line change
@@ -142,19 +142,13 @@ Parameters:
142142
AllowedValues:
143143
- groups
144144
- users_groups
145-
TimeOut:
146-
Type: Number
147-
Description: Timeout for the Lambda function
148-
Default: 300
149-
MinValue: 1
150-
MaxValue: 900
151145

152146
Resources:
153147
SSOSyncFunction:
154148
Type: AWS::Serverless::Function
155149
Properties:
156150
Runtime: provided.al2
157-
Handler: dist/ssosync_linux_arm64/ssosync
151+
Handler: bootstrap
158152
Architectures:
159153
- arm64
160154
Timeout: !Ref TimeOut
@@ -175,7 +169,8 @@ Resources:
175169
SSOSYNC_IGNORE_USERS: !Ref IgnoreUsers
176170
SSOSYNC_INCLUDE_GROUPS: !Ref IncludeGroups
177171
Policies:
178-
- Statement:
172+
- Version: '2012-10-17'
173+
Statement:
179174
- Sid: SSMGetParameterPolicy
180175
Effect: Allow
181176
Action:
@@ -187,8 +182,6 @@ Resources:
187182
- !Ref AWSSCIMAccessTokenSecret
188183
- !Ref AWSRegionSecret
189184
- !Ref AWSIdentityStoreIDSecret
190-
- Version: '2012-10-17'
191-
Statement:
192185
- Sid: IdentityStoreAccesPolicy
193186
Effect: Allow
194187
Action:
@@ -217,8 +210,6 @@ Resources:
217210
Properties:
218211
Enabled: true
219212
Schedule: !Ref ScheduleExpression
220-
Metadata:
221-
BuildMethod: makefile
222213

223214
AWSGoogleCredentialsSecret:
224215
Type: "AWS::SecretsManager::Secret"

0 commit comments

Comments
 (0)