Skip to content

Commit d1f0a73

Browse files
committed
Updating the infrastructure files for the stack
Accidentally rolled back my changes to the AWS infrastructure. I've now fixed them, and pushing to production. Will pull them into dev.
1 parent 04d7aef commit d1f0a73

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

app.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ const options = {
7777
};
7878

7979
const swaggerDocument = YAML.load('./openapi.yaml');
80-
app.use('/api-docs', swaggerUi.serve, swaggerUi.setup(swaggerDocument, options));
80+
app.use('/api-docs',
81+
swaggerUi.serve,
82+
swaggerUi.setup(swaggerDocument, options));
8183

8284
// Locations for v1.5 files:
8385
const v15index = require('./v1.5/routes/index'); // default route

build_deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ ${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com/${REPOSITORY_NAME}:${IMAGE
4141
echo "Pushing image to ECR..."
4242
docker push ${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com/${REPOSITORY_NAME}:${IMAGE_TAG}
4343

44-
log_step "Ensuring App Runner service-linked role exists"
44+
echo "Ensuring App Runner service-linked role exists"
4545
aws iam create-service-linked-role --aws-service-name apprunner.amazonaws.com 2>/dev/null || echo "Service-linked role already exists"
4646

4747
aws cloudformation deploy \

infrastructure/cloudformation-template.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ Resources:
103103
Properties:
104104
ServiceName: !Sub 'neoapi-${Environment}'
105105
SourceConfiguration:
106+
AuthenticationConfiguration:
107+
AccessRoleArn: !GetAtt AppRunnerAccessRole.Arn
106108
ImageRepository:
107109
ImageIdentifier: !Ref ImageUri
108110
ImageConfiguration:

0 commit comments

Comments
 (0)