Skip to content

Commit

Permalink
[DBShardGroup] Update handler with tagOnCreate, enable computeRedunda…
Browse files Browse the repository at this point in the history
…ncy on updates and refactor for simpler stabilization

cr: https://code.amazon.com/reviews/CR-154713945
  • Loading branch information
philicai authored and angusy29 committed Nov 8, 2024
1 parent d8a90ed commit 93c4015
Show file tree
Hide file tree
Showing 13 changed files with 438 additions and 431 deletions.
4 changes: 2 additions & 2 deletions aws-rds-dbshardgroup/aws-rds-dbshardgroup.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"rds:RemoveTagsFromResource"
],
"taggable": true,
"tagOnCreate": false,
"tagOnCreate": true,
"tagUpdatable": true,
"tagProperty": "/properties/Tags"
},
Expand All @@ -32,6 +32,7 @@
},
"ComputeRedundancy": {
"description": "Specifies whether to create standby instances for the DB shard group.",
"minimum": 0,
"type": "integer"
},
"MaxACU": {
Expand Down Expand Up @@ -95,7 +96,6 @@
"MaxACU"
],
"createOnlyProperties": [
"/properties/ComputeRedundancy",
"/properties/DBClusterIdentifier",
"/properties/DBShardGroupIdentifier",
"/properties/PubliclyAccessible"
Expand Down
2 changes: 1 addition & 1 deletion aws-rds-dbshardgroup/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ _Required_: No

_Type_: Integer

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

#### MaxACU

Expand Down
37 changes: 28 additions & 9 deletions aws-rds-dbshardgroup/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@
</properties>

<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
</dependency>
<dependency>
<groupId>software.amazon.rds.common</groupId>
<artifactId>aws-rds-cfn-common</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>rds</artifactId>
Expand All @@ -36,10 +46,15 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.22</version>
<version>${org.projectlombok.version}</version>
<scope>provided</scope>
</dependency>

<!-- https://mvnrepository.com/artifact/software.amazon.awssdk/aws-query-protocol -->
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-query-protocol</artifactId>
<version>2.20.138</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.assertj/assertj-core -->
<dependency>
<groupId>org.assertj</groupId>
Expand Down Expand Up @@ -68,12 +83,6 @@
<version>4.3.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>software.amazon.rds.common</groupId>
<artifactId>aws-rds-cfn-common</artifactId>
<version>1.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>software.amazon.rds.common</groupId>
<artifactId>aws-rds-cfn-test-common</artifactId>
Expand All @@ -89,6 +98,15 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${org.projectlombok.version}</version>
</path>
</annotationProcessorPaths>
<compilerArgs>
<arg>-Xlint:all,-options,-processing</arg>
</compilerArgs>
Expand All @@ -97,7 +115,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
<version>3.2.4</version>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
Expand Down Expand Up @@ -154,6 +172,7 @@
<version>2.4</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M3</version>
</plugin>
Expand Down
Loading

0 comments on commit 93c4015

Please sign in to comment.