- Tutorial: AWS CDK Workshop: https://cdkworkshop.com/30-python/30-hello-cdk/200-lambda.html
- --
- PS C:\projects\____python\z_Test\aws-cdk-lambda\cdk_workshop> . ./.venv/Scripts/activate
- (.venv) PS C:\projects\____python\z_Test\aws-cdk-lambda\cdk_workshop> cdk diff
- Stack cdk-workshop
- current credentials could not be used to assume 'arn:aws:iam::xxxxx:role/cdk-xxxx59fds-lookup-role-249934578875-us-east-1', but are for the right account. Proceeding anyway.
- (To get rid of this warning, please upgrade to bootstrap version >= 8)
- current credentials could not be used to assume 'arn:aws:iam::xxxxx:role/cdk-xxxx59fds-deploy-role-249934578875-us-east-1', but are for the right account. Proceeding anyway.
- IAM Statement Changes
- ┌───┬─────────────────────────────────┬────────┬────────────────┬──────────────────────────────┬───────────┐
- │ │ Resource │ Effect │ Action │ Principal │ Condition │
- ├───┼─────────────────────────────────┼────────┼────────────────┼──────────────────────────────┼───────────┤
- │ + │ ${HelloHandler/ServiceRole.Arn} │ Allow │ sts:AssumeRole │ Service:lambda.amazonaws.com │ │
- └───┴─────────────────────────────────┴────────┴────────────────┴──────────────────────────────┴───────────┘
- IAM Policy Changes
- ┌───┬─────────────────────────────┬────────────────────────────────────────────────────────────────────────────────┐
- │ │ Resource │ Managed Policy ARN │
- ├───┼─────────────────────────────┼────────────────────────────────────────────────────────────────────────────────┤
- │ + │ ${HelloHandler/ServiceRole} │ arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole │
- └───┴─────────────────────────────┴────────────────────────────────────────────────────────────────────────────────┘
- (NOTE: There may be security-related changes not in this list. See https://github.com/aws/aws-cdk/issues/1299)
- Parameters
- nvironment, automatically retrieved from SSM Parameter Store. [cdk:skip]"}
- Conditions
- [+] Condition CDKMetadata/Condition CDKMetadataAvailable: {"Fn::Or":[{"Fn::Or":[{"Fn::Equals":[{"Ref":"AWS::Region"},"af-south-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"ap-east-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"ap-northeast-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"ap-northeast-2"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"ap-south-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"ap-southeast-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"ap-southeast-2"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"ca-central-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"cn-north-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"cn-northwest-1"]}]},{"Fn::Or":[{"Fn::Equals":[{"Ref":"AWS::Region"},"eu-central-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"eu-north-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"eu-south-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"eu-west-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"eu-west-2"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"eu-west-3"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"me-south-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"sa-east-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"us-east-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"us-east-2"]}]},{"Fn::Or":[{"Fn::Equals":[{"Ref":"AWS::Region"},"us-west-1"]},{"Fn::Equals":[{"Ref":"AWS::Region"},"us-west-2"]}]}]}
- Resources
- [+] AWS::IAM::Role HelloHandler/ServiceRole HelloHandlerServiceRole11EF7C63
- [+] AWS::Lambda::Function HelloHandler HelloHandler2E4FBA4D
- Other Changes
- [+] Unknown Rules: {"CheckBootstrapVersion":{"Assertions":[{"Assert":{"Fn::Not":[{"Fn::Contains":[["1","2","3","4","5"],{"Ref":"BootstrapVersion"}]}]},"AssertDescription":"CDK bootstrap stack version 6
- required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."}]}}
Python software and documentation are licensed under the PSF License Agreement.
Starting with Python 3.8.6, examples, recipes, and other code in the documentation are dual licensed under the PSF License Agreement and the Zero-Clause BSD license.
Some software incorporated into Python is under different licenses. The licenses are listed with code falling under that license. See Licenses and Acknowledgements for Incorporated Software for an incomplete list of these licenses.
Python and it's documentation is:
Copyright © 2001-2022 Python Software Foundation. All rights reserved.
Copyright © 2000 BeOpen.com. All rights reserved.
Copyright © 1995-2000 Corporation for National Research Initiatives. All rights reserved.
Copyright © 1991-1995 Stichting Mathematisch Centrum. All rights reserved.
See History and License for complete license and permissions information:
https://docs.python.org/3/license.html#psf-license