From 33664cc9e4373448c9ca9af8666822e4cffbf8e0 Mon Sep 17 00:00:00 2001 From: Nicholas DeJaco <54116900+ndejaco2@users.noreply.github.com> Date: Thu, 12 Oct 2023 16:22:25 -0700 Subject: [PATCH] Add AppSync_BreakingChangeDetection hook to release pipeline (#244) * Add AppSync_BreakingChangeDetection hook to release pipeline * Additional changes to get the pipeline working properly * Bump packages to use python 3.8 * Rename file to match expected name --- .../PreUpdateHookHandler.java | 2 +- ...tion_undo.json => configuration-undo.json} | 0 .../test/integ-fail.yml | 29 ++++++++ .../test/integ-setup.yml | 29 ++++++++ .../test/integ-succeed.yml | 30 ++++++++ .../test/setup.json | 23 ------ hooks/CloudFront_LoggingEnabled/.rpdk-config | 4 +- hooks/CloudTrail_LogValidation/.rpdk-config | 4 +- .../.rpdk-config | 4 +- hooks/S3_BucketVersioningEnabled/.rpdk-config | 4 +- hooks/alpha-buildspec-java.yml | 2 +- hooks/alpha-buildspec-python.yml | 2 +- hooks/beta-buildspec-java-pre-update-only.yml | 42 +++++++++++ hooks/beta-buildspec-java.yml | 2 +- hooks/beta-buildspec-python.yml | 2 +- hooks/prod-buildspec-java.yml | 2 +- hooks/prod-buildspec-python.yml | 2 +- release/awscommunity/cicd.yml | 73 +++++++++++++++++++ .../Account_AlternateContact/.rpdk-config | 4 +- .../CloudFront_WebACLAssociation/.rpdk-config | 4 +- resources/S3_BucketNotification/.rpdk-config | 4 +- .../S3_DeleteBucketContents/.rpdk-config | 4 +- resources/alpha-buildspec-go.yml | 2 +- resources/alpha-buildspec-java.yml | 2 +- resources/alpha-buildspec-python.yml | 2 +- resources/alpha-buildspec-typescript.yml | 2 +- resources/beta-buildspec-go.yml | 2 +- resources/beta-buildspec-java.yml | 2 +- resources/beta-buildspec-python.yml | 2 +- resources/beta-buildspec-typescript.yml | 2 +- resources/prod-buildspec-go.yml | 2 +- resources/prod-buildspec-java.yml | 2 +- resources/prod-buildspec-python.yml | 2 +- resources/prod-buildspec-typescript.yml | 2 +- 34 files changed, 238 insertions(+), 58 deletions(-) rename hooks/AppSync_BreakingChangeDetection/test/{configuration_undo.json => configuration-undo.json} (100%) create mode 100644 hooks/AppSync_BreakingChangeDetection/test/integ-fail.yml create mode 100644 hooks/AppSync_BreakingChangeDetection/test/integ-setup.yml create mode 100644 hooks/AppSync_BreakingChangeDetection/test/integ-succeed.yml delete mode 100644 hooks/AppSync_BreakingChangeDetection/test/setup.json create mode 100644 hooks/beta-buildspec-java-pre-update-only.yml diff --git a/hooks/AppSync_BreakingChangeDetection/src/main/java/com/awscommunity/appsync/breakingchangedetection/PreUpdateHookHandler.java b/hooks/AppSync_BreakingChangeDetection/src/main/java/com/awscommunity/appsync/breakingchangedetection/PreUpdateHookHandler.java index 5048815e..a346f8b8 100644 --- a/hooks/AppSync_BreakingChangeDetection/src/main/java/com/awscommunity/appsync/breakingchangedetection/PreUpdateHookHandler.java +++ b/hooks/AppSync_BreakingChangeDetection/src/main/java/com/awscommunity/appsync/breakingchangedetection/PreUpdateHookHandler.java @@ -52,7 +52,7 @@ public ProgressEvent handleRequest( final AwsAppsyncGraphqlschema resourceProperties = targetModel.getResourceProperties(); boolean considerDangerousChanges = false; - if (typeConfiguration != null) { + if (typeConfiguration != null && typeConfiguration.getConsiderDangerousChangesBreaking() != null) { considerDangerousChanges = typeConfiguration.getConsiderDangerousChangesBreaking(); } diff --git a/hooks/AppSync_BreakingChangeDetection/test/configuration_undo.json b/hooks/AppSync_BreakingChangeDetection/test/configuration-undo.json similarity index 100% rename from hooks/AppSync_BreakingChangeDetection/test/configuration_undo.json rename to hooks/AppSync_BreakingChangeDetection/test/configuration-undo.json diff --git a/hooks/AppSync_BreakingChangeDetection/test/integ-fail.yml b/hooks/AppSync_BreakingChangeDetection/test/integ-fail.yml new file mode 100644 index 00000000..d1d3fe7d --- /dev/null +++ b/hooks/AppSync_BreakingChangeDetection/test/integ-fail.yml @@ -0,0 +1,29 @@ +Resources: + BasicGraphqlApi: + Type: "AWS::AppSync::GraphQLApi" + Properties: + Name: "TestAPI with IAM auth" + AuthenticationType: "AWS_IAM" + + BasicApiSchema: + Type: "AWS::AppSync::GraphQLSchema" + Properties: + ApiId: !GetAtt BasicGraphqlApi.ApiId + Definition: | + schema { + query: Query + mutation: Mutation + } + + type Query { + singlePost(id: ID!): Post2 + } + + type Mutation { + putPost(id: ID!, title: String!): Post2 + } + + type Post2 { + id: ID! + title: String! + } diff --git a/hooks/AppSync_BreakingChangeDetection/test/integ-setup.yml b/hooks/AppSync_BreakingChangeDetection/test/integ-setup.yml new file mode 100644 index 00000000..a886bc75 --- /dev/null +++ b/hooks/AppSync_BreakingChangeDetection/test/integ-setup.yml @@ -0,0 +1,29 @@ +Resources: + BasicGraphqlApi: + Type: "AWS::AppSync::GraphQLApi" + Properties: + Name: "TestAPI with IAM auth" + AuthenticationType: "AWS_IAM" + + BasicApiSchema: + Type: "AWS::AppSync::GraphQLSchema" + Properties: + ApiId: !GetAtt BasicGraphqlApi.ApiId + Definition: | + schema { + query: Query + mutation: Mutation + } + + type Query { + singlePost(id: ID!): Post + } + + type Mutation { + putPost(id: ID!, title: String!): Post + } + + type Post { + id: ID! + title: String! + } diff --git a/hooks/AppSync_BreakingChangeDetection/test/integ-succeed.yml b/hooks/AppSync_BreakingChangeDetection/test/integ-succeed.yml new file mode 100644 index 00000000..2209374e --- /dev/null +++ b/hooks/AppSync_BreakingChangeDetection/test/integ-succeed.yml @@ -0,0 +1,30 @@ +Resources: + BasicGraphqlApi: + Type: "AWS::AppSync::GraphQLApi" + Properties: + Name: "TestAPI with IAM auth" + AuthenticationType: "AWS_IAM" + + BasicApiSchema: + Type: "AWS::AppSync::GraphQLSchema" + Properties: + ApiId: !GetAtt BasicGraphqlApi.ApiId + Definition: | + schema { + query: Query + mutation: Mutation + } + + type Query { + singlePost(id: ID!): Post + allThePosts: [Post] + } + + type Mutation { + putPost(id: ID!, title: String!): Post + } + + type Post { + id: ID! + title: String! + } diff --git a/hooks/AppSync_BreakingChangeDetection/test/setup.json b/hooks/AppSync_BreakingChangeDetection/test/setup.json deleted file mode 100644 index 22468599..00000000 --- a/hooks/AppSync_BreakingChangeDetection/test/setup.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "Resources": { - "BasicGraphQLApi": { - "Type": "AWS::AppSync::GraphQLApi", - "Properties": { - "Name": "TestAPI with IAM and a NONE datasource.", - "AuthenticationType": "AWS_IAM" - } - }, - "BasicSchema": { - "Type": "AWS::AppSync::GraphQLSchema", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "BasicGraphQLApi", - "ApiId" - ] - }, - "Definition": "schema {\nquery: Query\nmutation: Mutation\n }\n\n type Query {\n singlePost(id: ID!): Post\n }\n\n type Mutation {\n putPost(id: ID!, title: String!): Post\n }\n\n type Post {\n id: ID!\n title: String!\n }" - } - } - } -} \ No newline at end of file diff --git a/hooks/CloudFront_LoggingEnabled/.rpdk-config b/hooks/CloudFront_LoggingEnabled/.rpdk-config index 9e7c6c0b..154177f9 100644 --- a/hooks/CloudFront_LoggingEnabled/.rpdk-config +++ b/hooks/CloudFront_LoggingEnabled/.rpdk-config @@ -1,8 +1,8 @@ { "artifact_type": "HOOK", "typeName": "AwsCommunity::CloudFront::LoggingEnabled", - "language": "python37", - "runtime": "python3.7", + "language": "python38", + "runtime": "python3.8", "entrypoint": "awscommunity_cloudfront_loggingenabled.handlers.hook", "testEntrypoint": "awscommunity_cloudfront_loggingenabled.handlers.test_entrypoint", "settings": { diff --git a/hooks/CloudTrail_LogValidation/.rpdk-config b/hooks/CloudTrail_LogValidation/.rpdk-config index c513d4a6..afaa2be5 100644 --- a/hooks/CloudTrail_LogValidation/.rpdk-config +++ b/hooks/CloudTrail_LogValidation/.rpdk-config @@ -1,8 +1,8 @@ { "artifact_type": "HOOK", "typeName": "AwsCommunity::CloudTrail::LogValidationEnabled", - "language": "python37", - "runtime": "python3.7", + "language": "python38", + "runtime": "python3.8", "entrypoint": "awscommunity_cloudtrail_logvalidationenabled.handlers.hook", "testEntrypoint": "awscommunity_cloudtrail_logvalidationenabled.handlers.test_entrypoint", "settings": { diff --git a/hooks/EC2_SecurityGroupRestrictedSSH/.rpdk-config b/hooks/EC2_SecurityGroupRestrictedSSH/.rpdk-config index 8cc74a3b..d082e0ec 100644 --- a/hooks/EC2_SecurityGroupRestrictedSSH/.rpdk-config +++ b/hooks/EC2_SecurityGroupRestrictedSSH/.rpdk-config @@ -1,8 +1,8 @@ { "artifact_type": "HOOK", "typeName": "AwsCommunity::EC2::SecurityGroupRestrictedSSH", - "language": "python37", - "runtime": "python3.7", + "language": "python38", + "runtime": "python3.8", "entrypoint": "awscommunity_ec2_securitygrouprestrictedssh.handlers.hook", "testEntrypoint": "awscommunity_ec2_securitygrouprestrictedssh.handlers.test_entrypoint", "settings": { diff --git a/hooks/S3_BucketVersioningEnabled/.rpdk-config b/hooks/S3_BucketVersioningEnabled/.rpdk-config index fc32b31e..5f38f244 100644 --- a/hooks/S3_BucketVersioningEnabled/.rpdk-config +++ b/hooks/S3_BucketVersioningEnabled/.rpdk-config @@ -1,8 +1,8 @@ { "artifact_type": "HOOK", "typeName": "AwsCommunity::S3::BucketVersioningEnabled", - "language": "python37", - "runtime": "python3.7", + "language": "python38", + "runtime": "python3.8", "entrypoint": "awscommunity_s3_bucketversioningenabled.handlers.hook", "testEntrypoint": "awscommunity_s3_bucketversioningenabled.handlers.test_entrypoint", "settings": { diff --git a/hooks/alpha-buildspec-java.yml b/hooks/alpha-buildspec-java.yml index 50995d77..ec66b4ac 100644 --- a/hooks/alpha-buildspec-java.yml +++ b/hooks/alpha-buildspec-java.yml @@ -3,7 +3,7 @@ version: 0.2 phases: install: runtime-versions: - python: 3.7 + python: 3.8 java: corretto11 commands: - echo Entered the install phase... diff --git a/hooks/alpha-buildspec-python.yml b/hooks/alpha-buildspec-python.yml index 08bda5a4..6922bd72 100644 --- a/hooks/alpha-buildspec-python.yml +++ b/hooks/alpha-buildspec-python.yml @@ -3,7 +3,7 @@ version: 0.2 phases: install: runtime-versions: - python: 3.7 + python: 3.8 commands: - echo Entered the install phase... - echo About to build $HOOK_PATH diff --git a/hooks/beta-buildspec-java-pre-update-only.yml b/hooks/beta-buildspec-java-pre-update-only.yml new file mode 100644 index 00000000..616f3e47 --- /dev/null +++ b/hooks/beta-buildspec-java-pre-update-only.yml @@ -0,0 +1,42 @@ +version: 0.2 + +phases: + install: + runtime-versions: + python: 3.8 + java: corretto11 + commands: + - echo Entered the install phase... + - echo About to build $HOOK_PATH + - export PATH="/usr/local/bin:$PATH" + - TYPE_NAME=$(python scripts/type_name.py $HOOK_PATH/.rpdk-config) + - TYPE_CLEAN_NAME="$(echo $TYPE_NAME | sed s/::/-/g | tr ‘[:upper:]’ ‘[:lower:]’)" + - echo TYPE_CLEAN_NAME is $TYPE_CLEAN_NAME + - BUILD_FILE_NAME=$(cat TYPE_CLEAN_NAME | sed s/_/-/g) + - BUILD_FILE_NAME="${BUILD_FILE_NAME}.zip" + - pip install git+https://github.com/aws-cloudformation/cloudformation-cli.git@master + - pip install git+https://github.com/aws-cloudformation/cloudformation-cli-java-plugin.git@master + - cd $HOOK_PATH + - cfn --version + - sam --version + build: + commands: + - echo Entered the build phase... + - cfn validate + - cfn generate + - mvn clean verify -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn + - cfn submit --set-default + - HOOK_TYPE_ARN=$(aws cloudformation list-types --visibility PRIVATE --type HOOK --filters TypeNamePrefix=$TYPE_NAME --output json | jq -r '.TypeSummaries[0].TypeArn') + - aws cloudformation set-type-configuration --configuration file://test/configuration.json --type-arn $HOOK_TYPE_ARN + - INTEG_STACK_NAME="integ-$(echo $TYPE_CLEAN_NAME | sed s/_/-/g)" + - rain deploy test/integ-setup.yml $INTEG_STACK_NAME -y + - rain deploy test/integ-succeed.yml $INTEG_STACK_NAME -y + - rain deploy test/integ-fail.yml $INTEG_STACK_NAME -y || [ $? -eq 1 ] + finally: + - cat rpdk.log + - aws cloudformation set-type-configuration --configuration file://test/configuration-undo.json --type-arn $HOOK_TYPE_ARN + - rain rm $INTEG_STACK_NAME -y +artifacts: + files: + - $BUILD_FILE_NAME + name: extensions-build diff --git a/hooks/beta-buildspec-java.yml b/hooks/beta-buildspec-java.yml index 1384b992..6ac3ebf6 100644 --- a/hooks/beta-buildspec-java.yml +++ b/hooks/beta-buildspec-java.yml @@ -3,7 +3,7 @@ version: 0.2 phases: install: runtime-versions: - python: 3.7 + python: 3.8 java: corretto11 commands: - echo Entered the install phase... diff --git a/hooks/beta-buildspec-python.yml b/hooks/beta-buildspec-python.yml index 2364d8cd..cc1ae0f9 100644 --- a/hooks/beta-buildspec-python.yml +++ b/hooks/beta-buildspec-python.yml @@ -3,7 +3,7 @@ version: 0.2 phases: install: runtime-versions: - python: 3.7 + python: 3.8 commands: - echo Entered the install phase... - echo About to build $HOOK_PATH diff --git a/hooks/prod-buildspec-java.yml b/hooks/prod-buildspec-java.yml index d83c5f3d..5eadb38e 100644 --- a/hooks/prod-buildspec-java.yml +++ b/hooks/prod-buildspec-java.yml @@ -3,7 +3,7 @@ version: 0.2 phases: install: runtime-versions: - python: 3.7 + python: 3.8 java: corretto11 commands: - echo Entered the install phase... diff --git a/hooks/prod-buildspec-python.yml b/hooks/prod-buildspec-python.yml index abdada7a..ea8d476d 100644 --- a/hooks/prod-buildspec-python.yml +++ b/hooks/prod-buildspec-python.yml @@ -3,7 +3,7 @@ version: 0.2 phases: install: runtime-versions: - python: 3.7 + python: 3.8 commands: - echo Entered the install phase... - echo About to build $HOOK_PATH diff --git a/release/awscommunity/cicd.yml b/release/awscommunity/cicd.yml index f9c942cc..dcfd06a2 100644 --- a/release/awscommunity/cicd.yml +++ b/release/awscommunity/cicd.yml @@ -114,6 +114,19 @@ Resources: ManagedPolicyArns: - Fn::ImportValue: !Sub "cep-${Env}-common-build-project-policy" + AppSyncSchemaBreakingChangDetectionBuildProjectRole: + Type: AWS::IAM::Role + Properties: + AssumeRolePolicyDocument: + Statement: + - Action: sts:AssumeRole + Effect: Allow + Principal: + Service: codebuild.amazonaws.com + Version: '2012-10-17' + ManagedPolicyArns: + - Fn::ImportValue: !Sub "cep-${Env}-common-build-project-policy" + S3AccessControlBuildProjectRole: Type: AWS::IAM::Role Properties: @@ -849,6 +862,20 @@ Resources: Roles: - !Ref KMSEncryptionSettingsBuildProjectRole + AppSyncSchemaBreakingChangeDetectionBuildProjectRolePolicy: + Type: AWS::IAM::Policy + Properties: + PolicyDocument: + Statement: + - Action: + - appsync:* + Effect: Allow + Resource: "*" + Version: '2012-10-17' + PolicyName: appsync-breaking-change-detection-build-project-policy + Roles: + - !Ref AppSyncSchemaBreakingChangDetectionBuildProjectRole + S3AccessControlBuildProjectPolicy: Type: AWS::IAM::Policy Properties: @@ -1319,6 +1346,31 @@ Resources: BuildSpec: !Sub "hooks/${Env}-buildspec-java.yml" TimeoutInMinutes: 480 + AppSyncSchemaBreakingChangDetectionBuildProject: + Type: AWS::CodeBuild::Project + Properties: + Name: !Sub "${PrefixLower}-${Env}-appsync-breakingchangedetection" + Artifacts: + Type: CODEPIPELINE + Environment: + ComputeType: BUILD_GENERAL1_LARGE + Image: !Sub "${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/cep-cicd:latest" + ImagePullCredentialsType: SERVICE_ROLE + PrivilegedMode: true + Type: LINUX_CONTAINER + EnvironmentVariables: + - Name: HOOK_PATH + Type: PLAINTEXT + Value: "placeholder-for-path-to-hook" + ServiceRole: !GetAtt AppSyncSchemaBreakingChangDetectionBuildProjectRole.Arn + Source: + Type: CODEPIPELINE + BuildSpec: !If + - IsBeta + - "hooks/beta-buildspec-java-pre-update-only.yml" + - !Sub "hooks/${Env}-buildspec-java.yml" + TimeoutInMinutes: 480 + S3AccessControlBuildProject: Type: AWS::CodeBuild::Project Properties: @@ -1443,6 +1495,7 @@ Resources: - !GetAtt KMSEncryptionSettingsBuildProject.Arn - !GetAtt S3AccessControlBuildProject.Arn - !GetAtt ApplicationAutoscalingScheduledActionBuildProject.Arn + - !GetAtt AppSyncSchemaBreakingChangDetectionBuildProject.Arn - Action: - kms:* Effect: Allow @@ -1514,6 +1567,7 @@ Resources: - !GetAtt KMSEncryptionSettingsBuildProjectRole.Arn - !GetAtt S3AccessControlBuildProjectRole.Arn - !GetAtt ApplicationAutoscalingScheduledActionBuildProjectRole.Arn + - !GetAtt AppSyncSchemaBreakingChangDetectionBuildProjectRole.Arn Resource: "*" MultiRegion: true @@ -1866,6 +1920,25 @@ Resources: } ] RunOrder: 1 + - Name: AppSyncSchemaBreakingChangeDetection + InputArtifacts: + - Name: extensions-source + ActionTypeId: + Category: Build + Owner: AWS + Provider: CodeBuild + Version: 1 + Configuration: + ProjectName: !Ref AppSyncSchemaBreakingChangDetectionBuildProject + EnvironmentVariables: |- + [ + { + "name": "HOOK_PATH", + "type": "PLAINTEXT", + "value": "hooks/AppSync_BreakingChangeDetection" + } + ] + RunOrder: 1 - !If - IsBeta - Name: CopyBuildToProd diff --git a/resources/Account_AlternateContact/.rpdk-config b/resources/Account_AlternateContact/.rpdk-config index 2391ec07..ef7a155c 100644 --- a/resources/Account_AlternateContact/.rpdk-config +++ b/resources/Account_AlternateContact/.rpdk-config @@ -1,8 +1,8 @@ { "artifact_type": "RESOURCE", "typeName": "AwsCommunity::Account::AlternateContact", - "language": "python37", - "runtime": "python3.7", + "language": "python38", + "runtime": "python3.8", "entrypoint": "awscommunity_account_alternatecontact.handlers.resource", "testEntrypoint": "awscommunity_account_alternatecontact.handlers.test_entrypoint", "settings": { diff --git a/resources/CloudFront_WebACLAssociation/.rpdk-config b/resources/CloudFront_WebACLAssociation/.rpdk-config index 7a15b8e3..c849de77 100644 --- a/resources/CloudFront_WebACLAssociation/.rpdk-config +++ b/resources/CloudFront_WebACLAssociation/.rpdk-config @@ -1,8 +1,8 @@ { "artifact_type": "RESOURCE", "typeName": "AwsCommunity::CloudFront::WebACLAssociation", - "language": "python37", - "runtime": "python3.7", + "language": "python38", + "runtime": "python3.8", "entrypoint": "awscommunity_cloudfront_webaclassociation.handlers.resource", "testEntrypoint": "awscommunity_cloudfront_webaclassociation.handlers.test_entrypoint", "settings": { diff --git a/resources/S3_BucketNotification/.rpdk-config b/resources/S3_BucketNotification/.rpdk-config index 4dc6a5a8..bc4f4913 100644 --- a/resources/S3_BucketNotification/.rpdk-config +++ b/resources/S3_BucketNotification/.rpdk-config @@ -1,8 +1,8 @@ { "artifact_type": "RESOURCE", "typeName": "AwsCommunity::S3::BucketNotification", - "language": "python37", - "runtime": "python3.7", + "language": "python38", + "runtime": "python3.8", "entrypoint": "awscommunity_s3_bucketnotification.handlers.resource", "testEntrypoint": "awscommunity_s3_bucketnotification.handlers.test_entrypoint", "settings": { diff --git a/resources/S3_DeleteBucketContents/.rpdk-config b/resources/S3_DeleteBucketContents/.rpdk-config index 4f1597fc..4ad89522 100644 --- a/resources/S3_DeleteBucketContents/.rpdk-config +++ b/resources/S3_DeleteBucketContents/.rpdk-config @@ -1,8 +1,8 @@ { "artifact_type": "RESOURCE", "typeName": "AwsCommunity::S3::DeleteBucketContents", - "language": "python37", - "runtime": "python3.7", + "language": "python38", + "runtime": "python3.8", "entrypoint": "awscommunity_s3_deletebucketcontents.handlers.resource", "testEntrypoint": "awscommunity_s3_deletebucketcontents.handlers.test_entrypoint", "settings": { diff --git a/resources/alpha-buildspec-go.yml b/resources/alpha-buildspec-go.yml index dd78772f..8541a174 100644 --- a/resources/alpha-buildspec-go.yml +++ b/resources/alpha-buildspec-go.yml @@ -3,7 +3,7 @@ version: 0.2 phases: install: runtime-versions: - python: 3.7 + python: 3.8 commands: - echo Entered the install phase... - echo About to build $RESOURCE_PATH diff --git a/resources/alpha-buildspec-java.yml b/resources/alpha-buildspec-java.yml index 8d82619e..93ad70b7 100644 --- a/resources/alpha-buildspec-java.yml +++ b/resources/alpha-buildspec-java.yml @@ -3,7 +3,7 @@ version: 0.2 phases: install: runtime-versions: - python: 3.7 + python: 3.8 java: corretto8 commands: - echo Entered the install phase... diff --git a/resources/alpha-buildspec-python.yml b/resources/alpha-buildspec-python.yml index aa9b07a4..fa201d3b 100644 --- a/resources/alpha-buildspec-python.yml +++ b/resources/alpha-buildspec-python.yml @@ -3,7 +3,7 @@ version: 0.2 phases: install: runtime-versions: - python: 3.7 + python: 3.8 commands: - echo Entered the install phase... - echo About to build $RESOURCE_PATH diff --git a/resources/alpha-buildspec-typescript.yml b/resources/alpha-buildspec-typescript.yml index 50482ba0..6e918f11 100644 --- a/resources/alpha-buildspec-typescript.yml +++ b/resources/alpha-buildspec-typescript.yml @@ -3,7 +3,7 @@ version: 0.2 phases: install: runtime-versions: - python: 3.7 + python: 3.8 commands: - echo Entered the install phase... - echo About to build $RESOURCE_PATH diff --git a/resources/beta-buildspec-go.yml b/resources/beta-buildspec-go.yml index 0963515c..05598399 100644 --- a/resources/beta-buildspec-go.yml +++ b/resources/beta-buildspec-go.yml @@ -3,7 +3,7 @@ version: 0.2 phases: install: runtime-versions: - python: 3.7 + python: 3.8 commands: - echo Entered the install phase... - echo About to build $RESOURCE_PATH diff --git a/resources/beta-buildspec-java.yml b/resources/beta-buildspec-java.yml index 169625dc..8fa01bb6 100644 --- a/resources/beta-buildspec-java.yml +++ b/resources/beta-buildspec-java.yml @@ -3,7 +3,7 @@ version: 0.2 phases: install: runtime-versions: - python: 3.7 + python: 3.8 java: corretto8 commands: - echo Entered the install phase... diff --git a/resources/beta-buildspec-python.yml b/resources/beta-buildspec-python.yml index 51ba0fea..402017a4 100644 --- a/resources/beta-buildspec-python.yml +++ b/resources/beta-buildspec-python.yml @@ -3,7 +3,7 @@ version: 0.2 phases: install: runtime-versions: - python: 3.7 + python: 3.8 commands: - echo Entered the install phase... - echo About to build $RESOURCE_PATH diff --git a/resources/beta-buildspec-typescript.yml b/resources/beta-buildspec-typescript.yml index 3bafe57c..71aab746 100644 --- a/resources/beta-buildspec-typescript.yml +++ b/resources/beta-buildspec-typescript.yml @@ -3,7 +3,7 @@ version: 0.2 phases: install: runtime-versions: - python: 3.7 + python: 3.8 commands: - echo Entered the install phase... - echo About to build $RESOURCE_PATH diff --git a/resources/prod-buildspec-go.yml b/resources/prod-buildspec-go.yml index cd62907d..e7754aaa 100644 --- a/resources/prod-buildspec-go.yml +++ b/resources/prod-buildspec-go.yml @@ -3,7 +3,7 @@ version: 0.2 phases: install: runtime-versions: - python: 3.7 + python: 3.8 commands: - echo Entered the install phase... - echo About to build $RESOURCE_PATH diff --git a/resources/prod-buildspec-java.yml b/resources/prod-buildspec-java.yml index e6e7b4b1..b78b00ed 100644 --- a/resources/prod-buildspec-java.yml +++ b/resources/prod-buildspec-java.yml @@ -3,7 +3,7 @@ version: 0.2 phases: install: runtime-versions: - python: 3.7 + python: 3.8 java: corretto8 commands: - echo Entered the install phase... diff --git a/resources/prod-buildspec-python.yml b/resources/prod-buildspec-python.yml index 93daaf2c..cf81b28b 100644 --- a/resources/prod-buildspec-python.yml +++ b/resources/prod-buildspec-python.yml @@ -3,7 +3,7 @@ version: 0.2 phases: install: runtime-versions: - python: 3.7 + python: 3.8 commands: - echo Entered the install phase... - echo About to build $RESOURCE_PATH diff --git a/resources/prod-buildspec-typescript.yml b/resources/prod-buildspec-typescript.yml index 3039ed26..451f5b17 100644 --- a/resources/prod-buildspec-typescript.yml +++ b/resources/prod-buildspec-typescript.yml @@ -3,7 +3,7 @@ version: 0.2 phases: install: runtime-versions: - python: 3.7 + python: 3.8 commands: - echo Entered the install phase... - echo About to build $RESOURCE_PATH