Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lambda を AWS CodeDeploy でデプロイする #71

Open
suzuki-shunsuke opened this issue Nov 20, 2021 · 4 comments
Open

Lambda を AWS CodeDeploy でデプロイする #71

suzuki-shunsuke opened this issue Nov 20, 2021 · 4 comments
Labels

Comments

@suzuki-shunsuke
Copy link
Owner

suzuki-shunsuke commented Nov 20, 2021

https://docs.aws.amazon.com/ja_jp/codedeploy/latest/userguide/welcome.html

@suzuki-shunsuke suzuki-shunsuke changed the title AWS CodeDeploy の検証 Lambda を AWS CodeDeploy でデプロイする Nov 20, 2021
@suzuki-shunsuke
Copy link
Owner Author

suzuki-shunsuke commented Nov 20, 2021

@suzuki-shunsuke
Copy link
Owner Author

AppSpec を使ったデプロイ

version: 0.0
Resources:
  - MyFunction: # Replace "MyFunction" with the name of your Lambda function 
      Type: AWS::Lambda::Function
      Properties:
        Name: "test-suzuki-shunsuke" # Specify the name of your Lambda function
        Alias: "develop" # Specify the alias for your Lambda function
        CurrentVersion: "1" # Specify the current version of your Lambda function
        TargetVersion: "2" # Specify the version of your Lambda function to deploy

指定した alias の version を Blue/Green Deploy する。
予め function, alias, version は存在する必要がある。

新しい version のリリースは CodeDeploy のカバー範囲ではないように見える。

  • create a zip
  • update function configuraiton
  • update function code
  • publish version

ここまでは CodeBuild などの CI ツールでやる感じなのだろうか?

AppSpec を生成し、 deploy をトリガーする必要がある。

@suzuki-shunsuke
Copy link
Owner Author

Enter a service role with CodeDeploy permissions that grants AWS CodeDeploy access to your target instances.

Service Role が必要

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: No status
Development

No branches or pull requests

1 participant