How to use the @aws-cdk/aws-secretsmanager.CfnSecret function in @aws-cdk/aws-secretsmanager

To help you get started, we’ve selected a few @aws-cdk/aws-secretsmanager examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github customink / activerecord-aurora-serverless-adapter / test / aurora-serverless / lib / aurora-serverless-stack.ts View on Github external
aurora2.addDependsOn(dbParamGroup);
    new CfnOutput(this, "AASAResourceArn", {
      value: `arn:aws:rds:${this.region}:${this.account}:cluster:${DB_CLUSTER_ID}`
    });
    new CfnOutput(this, "AASAResourceArn2", {
      value: `arn:aws:rds:${this.region}:${this.account}:cluster:${DB_CLUSTER_ID}2`
    });

    // SECRETS

    const secret = new CfnSecret(
      this,
      "Secret",
      secretProps(aurora, DB_CLUSTER_ID)
    );
    const secret2 = new CfnSecret(
      this,
      "Secret2",
      secretProps(aurora2, `${DB_CLUSTER_ID}2`)
    );
    secret.addDependsOn(aurora);
    secret2.addDependsOn(aurora2);
    new CfnOutput(this, "AASASecretArn", {
      value: secret.ref
    });
    new CfnOutput(this, "AASASecretArn2", {
      value: secret2.ref
    });

    // TEST USER

    const user = new User(this, "TestUser");
github customink / activerecord-aurora-serverless-adapter / test / aurora-serverless / lib / aurora-serverless-stack.ts View on Github external
dbSubnetGroup.dbSubnetGroupName,
        dbParamGroup
      )
    );
    aurora.addDependsOn(dbParamGroup);
    aurora2.addDependsOn(dbParamGroup);
    new CfnOutput(this, "AASAResourceArn", {
      value: `arn:aws:rds:${this.region}:${this.account}:cluster:${DB_CLUSTER_ID}`
    });
    new CfnOutput(this, "AASAResourceArn2", {
      value: `arn:aws:rds:${this.region}:${this.account}:cluster:${DB_CLUSTER_ID}2`
    });

    // SECRETS

    const secret = new CfnSecret(
      this,
      "Secret",
      secretProps(aurora, DB_CLUSTER_ID)
    );
    const secret2 = new CfnSecret(
      this,
      "Secret2",
      secretProps(aurora2, `${DB_CLUSTER_ID}2`)
    );
    secret.addDependsOn(aurora);
    secret2.addDependsOn(aurora2);
    new CfnOutput(this, "AASASecretArn", {
      value: secret.ref
    });
    new CfnOutput(this, "AASASecretArn2", {
      value: secret2.ref

@aws-cdk/aws-secretsmanager

The CDK Construct Library for AWS::SecretsManager

Apache-2.0
Latest version published 2 years ago

Package Health Score

67 / 100
Full package analysis