Skip to content

Commit

Permalink
deletion protection check for an environment
Browse files Browse the repository at this point in the history
  • Loading branch information
badmintoncryer committed Jan 4, 2025
1 parent 9c2cbe3 commit 548e5d6
Show file tree
Hide file tree
Showing 10 changed files with 124 additions and 75 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
"ApplicationId": {
"Ref": "MyApplicationForEnv1F597ED9"
},
"DeletionProtectionCheck": "ACCOUNT_DEFAULT",
"Description": "This is the environment for integ testing",
"Monitors": [
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { IntegTest } from '@aws-cdk/integ-tests-alpha';
import { App, Duration, PhysicalName, Stack } from 'aws-cdk-lib';
import { Alarm, ComparisonOperator, CompositeAlarm, Metric, TreatMissingData } from 'aws-cdk-lib/aws-cloudwatch';
import { Role, ServicePrincipal, Effect, PolicyStatement, PolicyDocument } from 'aws-cdk-lib/aws-iam';
import { Application, ConfigurationContent, DeploymentStrategy, Environment, HostedConfiguration, Monitor, RolloutStrategy } from 'aws-cdk-lib/aws-appconfig';
import { Application, ConfigurationContent, DeletionProtectionCheck, DeploymentStrategy, Environment, HostedConfiguration, Monitor, RolloutStrategy } from 'aws-cdk-lib/aws-appconfig';

const app = new App();

Expand Down Expand Up @@ -54,6 +54,7 @@ const compositeAlarm = new CompositeAlarm(stack, 'MyCompositeAlarm', {
const env = new Environment(stack, 'MyEnvironment', {
application: appForEnv,
description: 'This is the environment for integ testing',
deletionProtectionCheck: DeletionProtectionCheck.ACCOUNT_DEFAULT,
monitors: [
Monitor.fromCloudWatchAlarm(alarm),
Monitor.fromCfnMonitorsProperty({
Expand Down
Loading

0 comments on commit 548e5d6

Please sign in to comment.