Skip to content

Commit fe76a85

Browse files
committed
Updating infrastructure again to get rid of secrets manager.
1 parent 501f1a1 commit fe76a85

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

infrastructure/cloudformation-template.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,6 @@ Resources:
113113
RDS_PASSWORD: !Ref RDSPassword
114114
DB_SSL: 'true'
115115
PORT: '3001'
116-
RuntimeEnvironmentSecrets:
117-
RDS_USERNAME: !Sub '${DatabaseSecret}:username::'
118-
RDS_PASSWORD: !Sub '${DatabaseSecret}:password::'
119116
ImageRepositoryType: ECR
120117
AutoDeploymentsEnabled: true
121118
InstanceConfiguration:
@@ -148,15 +145,6 @@ Resources:
148145
Action: sts:AssumeRole
149146
ManagedPolicyArns:
150147
- arn:aws:iam::aws:policy/service-role/AWSAppRunnerServicePolicyForECRAccess
151-
Policies:
152-
- PolicyName: SecretsManagerAccess
153-
PolicyDocument:
154-
Version: '2012-10-17'
155-
Statement:
156-
- Effect: Allow
157-
Action:
158-
- secretsmanager:GetSecretValue
159-
Resource: !Ref DatabaseSecret
160148

161149
Outputs:
162150
ServiceUrl:
@@ -169,4 +157,4 @@ Outputs:
169157
Description: ECR Repository URI
170158
Value: !Sub '${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/${ECRRepository}'
171159
Export:
172-
Name: !Sub '${AWS::StackName}-ECRRepository'
160+
Name: !Sub '${AWS::StackName}-ECRRepository'

0 commit comments

Comments
 (0)