1- # spring-native-aws-lambda
1+ # spring-native-aws-function
22
33[ ![ CodeQL] ( https://github.com/muhamadto/spring-native-aws-lambda/actions/workflows/codeql-analysis.yml/badge.svg )] ( https://github.com/muhamadto/spring-native-aws-lambda/actions/workflows/codeql-analysis.yml )
44[ ![ Build] ( https://github.com/muhamadto/spring-native-aws-lambda/actions/workflows/build.yml/badge.svg )] ( https://github.com/muhamadto/spring-native-aws-lambda/actions/workflows/build.yml )
@@ -56,8 +56,8 @@ $ ./mvnw -ntp clean verify -U
56561. Run the following commands
5757 ` ` ` shell
5858 $ export SPRING_PROFILES_ACTIVE=local
59- $ ./mvnw -ntp clean -Pnative -DskipTests native:compile package -pl spring-native-aws-lambda-function
60- $ ./spring-native-aws-lambda-function /target/spring-native-aws-lambda-function
59+ $ ./mvnw -ntp clean -DskipTests -Pnative native:compile package -pl spring-native-aws-service
60+ $ ./spring-native-aws-service /target/spring-native-aws-service
6161 ` ` `
6262 The service starts in less than 100 ms
6363 ` ` ` shell
@@ -134,7 +134,7 @@ and the following trust relationship
134134 " token.actions.githubusercontent.com:aud" : " sts.amazonaws.com"
135135 },
136136 " StringLike" : {
137- " token.actions.githubusercontent.com:sub" : " repo:{github-account-or-org}/spring-native-aws-lambda :*"
137+ " token.actions.githubusercontent.com:sub" : " repo:{github-account-or-org}/spring-native-aws-service :*"
138138 }
139139 }
140140 }
@@ -259,7 +259,7 @@ and the following trust relationship
259259 " SNS:UntagResource"
260260 ],
261261 " Resource" : [
262- " arn:aws:sns:{aws-region}:{aws-account-number}:spring-native-aws-lambda- function-dead-letter-topic"
262+ " arn:aws:sns:{aws-region}:{aws-account-number}:spring-native-aws-function-dead-letter-topic"
263263 ]
264264 },
265265 {
@@ -281,8 +281,8 @@ and the following trust relationship
281281 " lambda:UpdateFunctionConfiguration"
282282 ],
283283 " Resource" : [
284- " arn:aws:lambda:{aws-region}:{aws-account-number}:function:spring-native-aws-lambda- function" ,
285- " arn:aws:lambda:{aws-region}:{aws-account-number}:function:spring-native-aws-lambda- function:$LATEST "
284+ " arn:aws:lambda:{aws-region}:{aws-account-number}:function:spring-native-aws-function" ,
285+ " arn:aws:lambda:{aws-region}:{aws-account-number}:function:spring-native-aws-function:$LATEST "
286286 ]
287287 },
288288 {
@@ -310,9 +310,9 @@ and the following trust relationship
310310 " iam:DetachRolePolicy"
311311 ],
312312 " Resource" : [
313- " arn:aws:iam::{aws-account-number}:role/spring-native-aws-lambda -springnativeawslambdafun-*" ,
314- " arn:aws:iam::{aws-account-number}:role/spring-native-aws-lambda -springnativeawslambdares-4FVJBBHF9EL2" ,
315- " arn:aws:iam::{aws-account-number}:role/spring-native-aws-lambda- function-rest-api/CloudWatchRole"
313+ " arn:aws:iam::{aws-account-number}:role/spring-native-aws-service -springnativeawslambdafun-*" ,
314+ " arn:aws:iam::{aws-account-number}:role/spring-native-aws-service -springnativeawslambdares-4FVJBBHF9EL2" ,
315+ " arn:aws:iam::{aws-account-number}:role/spring-native-aws-function-rest-api/CloudWatchRole"
316316 ]
317317 },
318318 {
@@ -346,7 +346,7 @@ in step 4
346346Now that the setup is done you can deploy to AWS.
347347
3483481. Create a new release in
349- Github [releases page](https://github.com/muhamadto/spring-native-aws-lambda /releases),
349+ Github [releases page](https://github.com/muhamadto/spring-native-aws-service /releases),
350350 the [github action](.github/workflows/release.yml) will start and a deployment to AWS
351351 environment.
3523522. Test via curl
0 commit comments