Skip to content

Commit 4a56a3d

Browse files
committed
Suggest updating the version to test updates
1 parent 0778f96 commit 4a56a3d

File tree

1 file changed

+3
-1
lines changed
  • content/blog/aws-rds-blue-green-deployment-updates

1 file changed

+3
-1
lines changed

content/blog/aws-rds-blue-green-deployment-updates/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Though this strategy typically increases the amount of time that updates need to
2929
Please see the full example code here: [Blue/Green Deployment Updates on RDS](https://github.com/pulumi-demos/examples/tree/main/typescript/aws-rds-blue-green-updates). To use blue/green deployments for your database updates, start by creating a database and corresponding parameter group.
3030

3131
```typescript
32+
const dbVersion = "14.18";
33+
3234
const parameterGroup = new aws.rds.ParameterGroup(
3335
"parameter-group",
3436
{
@@ -65,7 +67,7 @@ const database = new aws.rds.Instance(
6567

6668
After running `pulumi up` with the above code, you'll have a database deployed and attached to your custom parameter group. It's important to create and attach a custom parameter group so that you can keep it up to date with any engine version upgrades. If you use the default parameter group, updates to the database version may fail when the green deployment is created since its parameter group family won't match the new version. You can avoid a failure by ensuring that the parameter group's `family` and `engineVersion` are always changed in the same update.
6769

68-
You won't see the effects of having `blueGreenUpdate` enabled until you run your first update. Change any part of the database configuration and run `pulumi up` again to start the update.
70+
You won't see the effects of having `blueGreenUpdate` enabled until you run your first update. Change any part of the database configuration and run `pulumi up` again to start the update. In the example above, you can change dbVersion to 15.13 to trigger an update to both the parameter group and the instance.
6971

7072
Once the update kicks off, you can watch on AWS as the blue/green deployment is created and the original settings are copied to the green instance.
7173
![Blue Green Deployment Creating](./blue-green-creating.jpeg)

0 commit comments

Comments
 (0)