From 74ecc0f638423e5e8dbeef81c9ddb824143d9a07 Mon Sep 17 00:00:00 2001 From: CHIKAMATSU Naohiro Date: Sat, 10 Feb 2024 13:57:02 +0900 Subject: [PATCH 1/3] Rename --- README.md | 2 +- cloudformation/Makefile | 1 + .../.gitignore | 0 .../Makefile | 0 .../README.md | 2 +- .../lambda-with-apigateway.drawio | 0 .../lambda-with-apigateway.png | Bin .../main.go | 0 .../template.yml | 0 9 files changed, 3 insertions(+), 2 deletions(-) rename cloudformation/{api-gateway-with-lambda => lambda-with-api-gw}/.gitignore (100%) rename cloudformation/{api-gateway-with-lambda => lambda-with-api-gw}/Makefile (100%) rename cloudformation/{api-gateway-with-lambda => lambda-with-api-gw}/README.md (98%) rename cloudformation/{api-gateway-with-lambda => lambda-with-api-gw}/lambda-with-apigateway.drawio (100%) rename cloudformation/{api-gateway-with-lambda => lambda-with-api-gw}/lambda-with-apigateway.png (100%) rename cloudformation/{api-gateway-with-lambda => lambda-with-api-gw}/main.go (100%) rename cloudformation/{api-gateway-with-lambda => lambda-with-api-gw}/template.yml (100%) diff --git a/README.md b/README.md index aecfc43..a247826 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ The s3hub command provides following features: |Name|README|implementation| |:--|:--|:--| |[Lambda batch with EventBridge (CloudWatch Events)](./cloudformation/lambda-batch/README.md)|✅|100%| -|[Lambda with API Gateway](./cloudformation/api-gateway-with-lambda/README.md)|✅|100%| +|[Lambda with API Gateway](./cloudformation/lambda-with-api-gw/README.md)|✅|100%| |[CloudWatch Real User Monitoring (RUM)](./cloudformation/cloudwatch-rum/README.md)|✅|100%| diff --git a/cloudformation/Makefile b/cloudformation/Makefile index 3fc9e32..093a7da 100644 --- a/cloudformation/Makefile +++ b/cloudformation/Makefile @@ -7,4 +7,5 @@ help: ## Show this help deploy: ## Deploy CloudFormation Template cd static-web-site-distribution && make test-deploy || { echo "Deployment of static-web-site-distribution failed"; exit 1; } cd lambda-batch && make test-deploy || { echo "Deployment of lambda-batch failed"; exit 1; } + cd lambda-with-api-gw && make test-deploy || { echo "Deployment of lambda-with-api-gw failed"; exit 1; } cd cloudwatch-rum && make test-deploy || { echo "Deployment of cloudwatch-rum failed"; exit 1; } \ No newline at end of file diff --git a/cloudformation/api-gateway-with-lambda/.gitignore b/cloudformation/lambda-with-api-gw/.gitignore similarity index 100% rename from cloudformation/api-gateway-with-lambda/.gitignore rename to cloudformation/lambda-with-api-gw/.gitignore diff --git a/cloudformation/api-gateway-with-lambda/Makefile b/cloudformation/lambda-with-api-gw/Makefile similarity index 100% rename from cloudformation/api-gateway-with-lambda/Makefile rename to cloudformation/lambda-with-api-gw/Makefile diff --git a/cloudformation/api-gateway-with-lambda/README.md b/cloudformation/lambda-with-api-gw/README.md similarity index 98% rename from cloudformation/api-gateway-with-lambda/README.md rename to cloudformation/lambda-with-api-gw/README.md index b339be9..d9f04fe 100644 --- a/cloudformation/api-gateway-with-lambda/README.md +++ b/cloudformation/lambda-with-api-gw/README.md @@ -1,4 +1,4 @@ -## API Gateway with Lambda +## Lambda with API Gateway ### Overview Lambda and API Gateway combined infrastructure is a powerful means for realizing serverless architecture. Lambda is a service for executing code, while API Gateway creates HTTP endpoints and forwards requests to Lambda functions. diff --git a/cloudformation/api-gateway-with-lambda/lambda-with-apigateway.drawio b/cloudformation/lambda-with-api-gw/lambda-with-apigateway.drawio similarity index 100% rename from cloudformation/api-gateway-with-lambda/lambda-with-apigateway.drawio rename to cloudformation/lambda-with-api-gw/lambda-with-apigateway.drawio diff --git a/cloudformation/api-gateway-with-lambda/lambda-with-apigateway.png b/cloudformation/lambda-with-api-gw/lambda-with-apigateway.png similarity index 100% rename from cloudformation/api-gateway-with-lambda/lambda-with-apigateway.png rename to cloudformation/lambda-with-api-gw/lambda-with-apigateway.png diff --git a/cloudformation/api-gateway-with-lambda/main.go b/cloudformation/lambda-with-api-gw/main.go similarity index 100% rename from cloudformation/api-gateway-with-lambda/main.go rename to cloudformation/lambda-with-api-gw/main.go diff --git a/cloudformation/api-gateway-with-lambda/template.yml b/cloudformation/lambda-with-api-gw/template.yml similarity index 100% rename from cloudformation/api-gateway-with-lambda/template.yml rename to cloudformation/lambda-with-api-gw/template.yml From 20b7d899018569ef93768d87362c32612866758e Mon Sep 17 00:00:00 2001 From: CHIKAMATSU Naohiro Date: Sat, 10 Feb 2024 14:16:02 +0900 Subject: [PATCH 2/3] Update --- cloudformation/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudformation/Makefile b/cloudformation/Makefile index 093a7da..880d2ee 100644 --- a/cloudformation/Makefile +++ b/cloudformation/Makefile @@ -5,7 +5,7 @@ help: ## Show this help | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[1;32m%-15s\033[0m %s\n", $$1, $$2}' deploy: ## Deploy CloudFormation Template - cd static-web-site-distribution && make test-deploy || { echo "Deployment of static-web-site-distribution failed"; exit 1; } + #cd static-web-site-distribution && make test-deploy || { echo "Deployment of static-web-site-distribution failed"; exit 1; } cd lambda-batch && make test-deploy || { echo "Deployment of lambda-batch failed"; exit 1; } cd lambda-with-api-gw && make test-deploy || { echo "Deployment of lambda-with-api-gw failed"; exit 1; } cd cloudwatch-rum && make test-deploy || { echo "Deployment of cloudwatch-rum failed"; exit 1; } \ No newline at end of file From bbe0f62ba934a1a853738dc39dcb96351b31633e Mon Sep 17 00:00:00 2001 From: CHIKAMATSU Naohiro Date: Sat, 10 Feb 2024 14:21:22 +0900 Subject: [PATCH 3/3] Rename --- cloudformation/Makefile | 2 +- cloudformation/lambda-with-api-gw/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudformation/Makefile b/cloudformation/Makefile index 880d2ee..093a7da 100644 --- a/cloudformation/Makefile +++ b/cloudformation/Makefile @@ -5,7 +5,7 @@ help: ## Show this help | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[1;32m%-15s\033[0m %s\n", $$1, $$2}' deploy: ## Deploy CloudFormation Template - #cd static-web-site-distribution && make test-deploy || { echo "Deployment of static-web-site-distribution failed"; exit 1; } + cd static-web-site-distribution && make test-deploy || { echo "Deployment of static-web-site-distribution failed"; exit 1; } cd lambda-batch && make test-deploy || { echo "Deployment of lambda-batch failed"; exit 1; } cd lambda-with-api-gw && make test-deploy || { echo "Deployment of lambda-with-api-gw failed"; exit 1; } cd cloudwatch-rum && make test-deploy || { echo "Deployment of cloudwatch-rum failed"; exit 1; } \ No newline at end of file diff --git a/cloudformation/lambda-with-api-gw/Makefile b/cloudformation/lambda-with-api-gw/Makefile index 0ac2fe8..8b1acdd 100644 --- a/cloudformation/lambda-with-api-gw/Makefile +++ b/cloudformation/lambda-with-api-gw/Makefile @@ -1,7 +1,7 @@ .DEFAULT_GOAL := help BINARY_NAME = bootstrap -AWS_STACK_NAME = lambda-batch +AWS_STACK_NAME = lambda-with-api-gw TEMPLATE_FILE = template.yml .PHONY: help clean dependency_check build deploy