Skip to content

Commit 7e1e5a4

Browse files
committed
Merge branch 'hotfix/cb-policy-arn-partition' into devel
2 parents cacb331 + af93cc2 commit 7e1e5a4

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

docs/configuration.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
---
2+
3+
# Copyright 2022 Cloudera, Inc. All Rights Reserved.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
117
datahub:
218
compute:
319
aws:
@@ -69,6 +85,7 @@ dw:
6985
suffix:
7086
env:
7187
aws:
88+
arn_partition: aws | aws-cn | aws-us-gov (See https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
7289
policy:
7390
name:
7491
bucket_access:

roles/platform/defaults/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22

3-
# Copyright 2021 Cloudera, Inc. All Rights Reserved.
3+
# Copyright 2022 Cloudera, Inc. All Rights Reserved.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -106,6 +106,7 @@ plat__cdp_xaccount_account_id: "{{ env.cdp.cross_account.account_
106106

107107
# AWS
108108
plat__aws_profile: "{{ common__aws_profile }}"
109+
plat__aws_arn_partition: "{{ env.aws.arn_partition | default('aws') }}"
109110
plat__aws_vpc_id: "{{ common__aws_vpc_id }}"
110111
plat__aws_public_subnet_ids: "{{ common__aws_public_subnet_ids }}"
111112
plat__aws_private_subnet_ids: "{{ common__aws_private_subnet_ids }}"

roles/platform/tasks/aws_policy_regex.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22

3-
# Copyright 2021 Cloudera, Inc. All Rights Reserved.
3+
# Copyright 2022 Cloudera, Inc. All Rights Reserved.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -35,4 +35,6 @@
3535
- regexp: '\${STORAGE_LOCATION_BASE}'
3636
replace: "{{ plat__storage_name }}"
3737
- regexp: '\${DATALAKE_BUCKET}'
38-
replace: "{{ plat__storage_name }}"
38+
replace: "{{ plat__storage_name }}"
39+
- regexp: '\${ARN_PARTITION}'
40+
replace: "{{ plat__aws_arn_partition }}"

0 commit comments

Comments
 (0)