From 710827be695581ed98eb1d7d96d55ba4f9b7ab0e Mon Sep 17 00:00:00 2001 From: Michael Tuszynski Date: Fri, 26 Mar 2021 11:01:16 -0700 Subject: [PATCH] fixed --- rotation.yml | 68 ++++++++++++++++++++++++++-------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/rotation.yml b/rotation.yml index cb81ae8..641a0d8 100644 --- a/rotation.yml +++ b/rotation.yml @@ -2,7 +2,7 @@ AWSTemplateFormatVersion: 2010-09-09 Transform: - "AWS::Serverless-2016-10-31" - + Parameters: App: Type: String @@ -16,37 +16,37 @@ Parameters: Resources: SecretRotationTemplate: - Type: AWS::Serverless::Application - Properties: - Location: - ApplicationId: arn:aws:serverlessrepo:us-east-1:297356227824:applications/SecretsManagerRDSPostgreSQLRotationSingleUser - SemanticVersion: 1.1.60 - Parameters: - endpoint: !Sub https://secretsmanager.${AWS::Region}.amazonaws.com - functionName: !Sub ${AWS::StackName}-func - vpcSecurityGroupIds: !ImportValue RotationSecurityGroup - vpcSubnetIds: - Fn::Join: - - "," - - - !Select [ - 0, - !Split [ - ",", - { "Fn::ImportValue": !Sub "${App}-${Env}-PrivateSubnets" }, - ], - ] - - !Select [ - 1, - !Split [ - ",", - { "Fn::ImportValue": !Sub "${App}-${Env}-PrivateSubnets" }, - ], - ] - + Type: AWS::Serverless::Application + Properties: + Location: + ApplicationId: arn:aws:serverlessrepo:us-east-1:297356227824:applications/SecretsManagerRDSPostgreSQLRotationSingleUser + SemanticVersion: 1.1.60 + Parameters: + endpoint: !Sub https://secretsmanager.${AWS::Region}.amazonaws.com + functionName: !Sub ${AWS::StackName}-func + vpcSecurityGroupIds: !ImportValue RotationSecurityGroup + vpcSubnetIds: + Fn::Join: + - "," + - - !Select [ + 0, + !Split [ + ",", + { "Fn::ImportValue": !Sub "${App}-${Env}-PrivateSubnets" }, + ], + ] + - !Select [ + 1, + !Split [ + ",", + { "Fn::ImportValue": !Sub "${App}-${Env}-PrivateSubnets" }, + ], + ] + SecretRotationSchedule: - Type: AWS::SecretsManager::RotationSchedule - Properties: - SecretId: !ImportValue AuroraSecret - RotationLambdaARN: !GetAtt SecretRotationTemplate.Outputs.RotationLambdaARN - RotationRules: - AutomaticallyAfterDays: 30 + Type: AWS::SecretsManager::RotationSchedule + Properties: + SecretId: !ImportValue AuroraSecret + RotationLambdaARN: !GetAtt SecretRotationTemplate.Outputs.RotationLambdaARN + RotationRules: + AutomaticallyAfterDays: 30 \ No newline at end of file