Software engineer with a passion for developing bleeding edge web applications and event-driven architecture. More talks and resources at https://connect.yvesgurcan.com.
and AWS SAM
/whois YvesGurcan *** Start Of Whois For User YvesGurcan *** YvesGurcan is French YvesGurcan is a senior software enginer YvesGurcan is the owner of Parallel45, his consulting company YvesGurcan previously worked at Nike and various startups in Eugene, OR. YvesGurcan is AWS certified YvesGurcan is using a Secure Connection YvesGurcan Idle: 0secs - SignOn: Tue May 19 18:11:32 2020 (14mins ago) *** End Of Whois ***
Previously in PDX Serverless Meetup...
Blue-greens eggs and deployments
Resources: MyLambdaFunction: Type: AWS::Serverless::Function Properties: Handler: index.handler Runtime: nodejs12.x CodeUri: s3://bucket/code.zip AutoPublishAlias: live DeploymentPreference: Type: Linear10PercentEvery1Minute Alarms: # A list of alarms that you want to monitor - !Ref AliasErrorMetricGreaterThanZeroAlarm - !Ref LatestVersionErrorMetricGreaterThanZeroAlarm Hooks: # Validation Lambda functions run before and after traffic shifting PreTraffic: !Ref PreTrafficLambdaFunction PostTraffic: !Ref PostTrafficLambdaFunction
Would you like AWS Lambdas here or there? Would you like them in your terminal?
brew tap aws/tap brew install aws-sam-cli
sam init --name sam-nodejs12-demo cd sam-nodejs12-demo
sam local invoke
Would you deploy them in a CLI?
sam build sam deploy --guided --stack-name helloFromLambda --region us-west-2
In your IDE?
Would you deploy them with an API?
sam init --name sam-nodejs12-api-demo --runtime nodejs12.x cd sam-nodejs12-api-demo sam build sam deploy --guided --stack-name myServerlessBackend --region us-west-2
Would you? Could you? In your pipeline?
Say! In the Cloud9 IDE?
You don't like blue-green deployments
and SAM? You do not like them. So you say. Try them! And you may.
By Yves Gurcan