Skip to content

Commit

Permalink
Fixing cert import issue and updating dependencies (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
sayor-basu authored May 10, 2023
1 parent e5561f7 commit 06eefd9
Show file tree
Hide file tree
Showing 5 changed files with 5,680 additions and 2,717 deletions.
2 changes: 1 addition & 1 deletion apigw-custom-domain/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
./sslcert/*
sslcert
4 changes: 2 additions & 2 deletions apigw-custom-domain/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ install: ## Install dependencies
@which serverless || npm install -g serverless
@which localstack || pip install localstack
@which awslocal || pip install awscli-local

cert: ## Create test SSL certificate
mkdir -p sslcert
cd sslcert; \
Expand All @@ -25,7 +25,7 @@ run: ## Deploy the app locally and run an API GW test invocation
echo "Generating and importing test SSL certificate to ACM for Route53 domain test.example.com"; \
make cert; \
echo "Importing local test certificate into ACM API ..."; \
awslocal acm import-certificate --certificate file://sslcert/server.crt --private-key file://sslcert/ssl.key && \
awslocal acm import-certificate --certificate fileb://sslcert/server.crt --private-key fileb://sslcert/ssl.key && \
echo "Creating Route53 hosted zone for test domain 'test.example.com' ..."; \
awslocal route53 create-hosted-zone --name test.example.com --caller-reference r1 && \
echo "Deploying Serverless app to local environment"; \
Expand Down
Loading

0 comments on commit 06eefd9

Please sign in to comment.