Skip to content

Commit

Permalink
Modified schema permissions for workgroup dependencies to deploy (#38)
Browse files Browse the repository at this point in the history
This change contains schema changes for dependencies to deploy. This is required because during build schema permissions are converted to resource-role which is used to execute contract tests.The same permissions apply to deployment of dependencies as well. CT dependencies deployment uses the same role created in resource-role.yaml
  • Loading branch information
vramanet authored Jan 26, 2024
1 parent 41e38fa commit cfc49ec
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aws-redshiftserverless-workgroup/.rpdk-config
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@
"codegen_template_path": "guided_aws",
"protocolVersion": "2.0.0"
},
"executableEntrypoint": "software.amazon.redshiftserverless.workgroup.HandlerWrapperExecutable"
"logProcessorEnabled": "true",
"executableEntrypoint": "software.amazon.redshiftserverless.workgroup.HandlerWrapperExecutable",
"contractSettings": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@
"ec2:DescribeSubnets",
"ec2:DescribeAccountAttributes",
"ec2:DescribeAvailabilityZones",
"redshift-serverless:CreateNamespace",
"redshift-serverless:CreateWorkgroup",
"redshift-serverless:GetWorkgroup"
]
Expand Down
23 changes: 23 additions & 0 deletions aws-redshiftserverless-workgroup/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ Properties:

#### WorkgroupName

The name of the workgroup.

_Required_: Yes

_Type_: String
Expand All @@ -67,6 +69,8 @@ _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/l

#### NamespaceName

The namespace the workgroup is associated with.

_Required_: No

_Type_: String
Expand All @@ -81,6 +85,8 @@ _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/l

#### BaseCapacity

The base compute capacity of the workgroup in Redshift Processing Units (RPUs).

_Required_: No

_Type_: Integer
Expand All @@ -89,6 +95,8 @@ _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormati

#### MaxCapacity

The max compute capacity of the workgroup in Redshift Processing Units (RPUs).

_Required_: No

_Type_: Integer
Expand All @@ -97,6 +105,8 @@ _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormati

#### EnhancedVpcRouting

The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.

_Required_: No

_Type_: Boolean
Expand All @@ -105,6 +115,8 @@ _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormati

#### ConfigParameters

A list of parameters to set for finer control over a database. Available options are datestyle, enable_user_activity_logging, query_group, search_path, max_query_execution_time, and require_ssl.

_Required_: No

_Type_: List of <a href="configparameter.md">ConfigParameter</a>
Expand All @@ -113,6 +125,8 @@ _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormati

#### SecurityGroupIds

A list of security group IDs to associate with the workgroup.

_Required_: No

_Type_: List of String
Expand All @@ -121,6 +135,8 @@ _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormati

#### SubnetIds

A list of subnet IDs the workgroup is associated with.

_Required_: No

_Type_: List of String
Expand All @@ -129,6 +145,8 @@ _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormati

#### PubliclyAccessible

A value that specifies whether the workgroup can be accessible from a public network.

_Required_: No

_Type_: Boolean
Expand All @@ -137,6 +155,8 @@ _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormati

#### Port

The custom port to use when connecting to a workgroup. Valid port ranges are 5431-5455 and 8191-8215. The default is 5439.

_Required_: No

_Type_: Integer
Expand All @@ -145,6 +165,8 @@ _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormati

#### Tags

The map of the key-value pairs used to tag the workgroup.

_Required_: No

_Type_: List of <a href="tag.md">Tag</a>
Expand Down Expand Up @@ -254,3 +276,4 @@ Returns the <code>PubliclyAccessible</code> value.
#### CreationDate

Returns the <code>CreationDate</code> value.

1 change: 1 addition & 0 deletions aws-redshiftserverless-workgroup/docs/configparameter.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ _Type_: String
_Maximum Length_: <code>15000</code>

_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

1 change: 1 addition & 0 deletions aws-redshiftserverless-workgroup/docs/tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ _Type_: String
_Maximum Length_: <code>256</code>

_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

1 change: 1 addition & 0 deletions aws-redshiftserverless-workgroup/docs/workgroup.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ _Required_: No
_Type_: <a href="endpoint.md">Endpoint</a>

_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

1 change: 1 addition & 0 deletions aws-redshiftserverless-workgroup/resource-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Resources:
- "ec2:DescribeSecurityGroups"
- "ec2:DescribeSubnets"
- "ec2:DescribeVpcAttribute"
- "redshift-serverless:CreateNamespace"
- "redshift-serverless:CreateWorkgroup"
- "redshift-serverless:DeleteWorkgroup"
- "redshift-serverless:GetWorkgroup"
Expand Down

0 comments on commit cfc49ec

Please sign in to comment.