Skip to content

Commit ab23ef5

Browse files
committed
upgrade CDK Version up to 2.105.0
1 parent 7628159 commit ab23ef5

File tree

11 files changed

+41
-13
lines changed

11 files changed

+41
-13
lines changed

opensearch-serverless/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,17 @@ At this point you can now synthesize the CloudFormation template for this code.
5151
(.venv) $ cdk synth -c iam_user_name=<i>your-iam-user-name</i> --all
5252
</pre>
5353

54-
:warning: Amazon OpenSearch Serverless requires mandatory IAM permission for access to resources.
55-
You are required to add these two IAM permissions for your OpenSearch Serverless **"aoss:APIAccessAll"** for Data Plane API access, and **"aoss:DashboardsAccessAll"** for Dashboards access. Failure to add the two new IAM permissions will result in 403 errors starting on May 10th, 2023
54+
:warning: Amazon OpenSearch Serverless requires mandatory IAM permission for access to resources.<br/>
55+
You are required to add these two IAM permissions for your OpenSearch Serverless to your IAM User.
56+
57+
- **"aoss:APIAccessAll"** for Data Plane API access
58+
- **"aoss:DashboardsAccessAll"** for Dashboards access.
59+
60+
For example,
61+
![](./assets/iam_user_attached_policy_to_access_opensearch_serverless.png)
62+
63+
Failure to add the two new IAM permissions will result in 403 errors starting on May 10th, 2023.
64+
5665

5766
For a sample data-plane policy [here](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/security-iam-serverless.html#security_iam_id-based-policy-examples-data-plane.html):
5867

198 KB
Loading

opensearch-serverless/cdk_stacks/collection_pipeline_role.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,9 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
3131
)
3232
self.iam_role = pipeline_role
3333

34-
cdk.CfnOutput(self, f'{self.stack_name}_Role', value=self.iam_role.role_name)
35-
cdk.CfnOutput(self, f'{self.stack_name}_RoleArn', value=self.iam_role.role_arn)
34+
cdk.CfnOutput(self, 'RoleName',
35+
value=self.iam_role.role_name,
36+
export_name=f'{self.stack_name}-RoleName')
37+
cdk.CfnOutput(self, 'RoleArn',
38+
value=self.iam_role.role_arn,
39+
export_name=f'{self.stack_name}-RoleArn')

opensearch-serverless/cdk_stacks/opensearch_serverless_ingestion.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,6 @@ def __init__(self, scope: Construct, construct_id: str, pipeline_role_arn, colle
5454
)
5555
)
5656

57-
cdk.CfnOutput(self, f'{self.stack_name}-PipelineName', value=cfn_pipeline.pipeline_name)
57+
cdk.CfnOutput(self, 'PipelineName',
58+
value=cfn_pipeline.pipeline_name,
59+
export_name=f'{self.stack_name}-PipelineName')

opensearch-serverless/cdk_stacks/opensearch_serverless_ts.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ def __init__(self, scope: Construct, construct_id: str, pipeline_role_arn, **kwa
127127

128128
self.collection_endpoint = cfn_collection.attr_collection_endpoint
129129

130-
cdk.CfnOutput(self, f'{self.stack_name}-Endpoint', value=cfn_collection.attr_collection_endpoint)
131-
cdk.CfnOutput(self, f'{self.stack_name}-DashboardsURL', value=cfn_collection.attr_dashboard_endpoint)
130+
cdk.CfnOutput(self, 'Endpoint',
131+
value=cfn_collection.attr_collection_endpoint,
132+
export_name=f'{self.stack_name}-Endpoint')
133+
cdk.CfnOutput(self, 'DashboardsURL',
134+
value=cfn_collection.attr_dashboard_endpoint,
135+
export_name=f'{self.stack_name}-DashboardsURL')
132136

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
aws-cdk-lib==2.81.0
1+
aws-cdk-lib==2.105.0
22
constructs>=10.0.0,<11.0.0

opensearch/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.DS_Store
2+
*/.DS_Store
13
*.swp
24
package-lock.json
35
__pycache__

opensearch/cdk_stacks/ops_domain_ingestion.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,6 @@ def __init__(self, scope: Construct, construct_id: str, pipeline_role_arn, opens
5959
)
6060
)
6161

62-
cdk.CfnOutput(self, f'{self.stack_name}-PipelineName', value=cfn_pipeline.pipeline_name)
62+
cdk.CfnOutput(self, 'PipelineName',
63+
value=cfn_pipeline.pipeline_name,
64+
export_name=f'{self.stack_name}-PipelineName')

opensearch/cdk_stacks/ops_domain_pipeline_role.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,9 @@ def __init__(self, scope: Construct, construct_id: str, ops_domain_arn, **kwargs
3939
)
4040
self.iam_role = pipeline_role
4141

42-
cdk.CfnOutput(self, f'{self.stack_name}_Role', value=self.iam_role.role_name)
43-
cdk.CfnOutput(self, f'{self.stack_name}_RoleArn', value=self.iam_role.role_arn)
42+
cdk.CfnOutput(self, 'RoleName',
43+
value=self.iam_role.role_name,
44+
export_name=f'{self.stack_name}-RoleName')
45+
cdk.CfnOutput(self, 'RoleArn',
46+
value=self.iam_role.role_arn,
47+
export_name=f'{self.stack_name}-RoleArn')

opensearch/cdk_stacks/vpc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
4141

4242
#XXX: The Name field of every Export member must be specified and
4343
# consist only of alphanumeric characters,colons, or hyphens.
44-
cdk.CfnOutput(self, '{}_VPCID'.format(self.stack_name), value=self.vpc.vpc_id,
44+
cdk.CfnOutput(self, 'VPCID',
45+
value=self.vpc.vpc_id,
4546
export_name='{}-VPCID'.format(self.stack_name))
4647

0 commit comments

Comments
 (0)