Code Monkey home page Code Monkey logo

cfn-ps-salesforce-connect-appsync-rds-postgresql's Issues

CodeBuildRun not working

I followed the page below to deploy in a new VPC, but CodeBuildRun did not work.
https://aws.amazon.com/jp/solutions/partners/salesforce-connect-appsync-rds-postgresql/

error log

[Container] 2024/02/06 04:35:51.188655 Waiting for agent ping
[Container] 2024/02/06 04:35:51.389899 Waiting for DOWNLOAD_SOURCE
[Container] 2024/02/06 04:35:52.039506 Phase is DOWNLOAD_SOURCE
[Container] 2024/02/06 04:35:52.043486 CODEBUILD_SRC_DIR=/codebuild/output/src2985760278/src
[Container] 2024/02/06 04:35:52.043541 YAML location is /codebuild/readonly/buildspec.yml
[Container] 2024/02/06 04:35:52.045802 Processing environment variables
[Container] 2024/02/06 04:35:52.312143 No runtime version selected in buildspec.
[Container] 2024/02/06 04:35:52.368114 Moving to directory /codebuild/output/src2985760278/src
[Container] 2024/02/06 04:35:52.371066 Unable to initialize cache download: no paths specified to be cached
[Container] 2024/02/06 04:35:52.515209 Configuring ssm agent with target id: codebuild:8581f89c-9128-4f00-8a51-575b73e39e7c
[Container] 2024/02/06 04:35:52.573487 Successfully updated ssm agent configuration
[Container] 2024/02/06 04:35:52.573815 Registering with agent
[Container] 2024/02/06 04:35:52.573833 Phases found in YAML: 3
[Container] 2024/02/06 04:35:52.573838  PRE_BUILD: 2 commands
[Container] 2024/02/06 04:35:52.573841  BUILD: 31 commands
[Container] 2024/02/06 04:35:52.573844  POST_BUILD: 1 commands
[Container] 2024/02/06 04:35:52.574101 Phase complete: DOWNLOAD_SOURCE State: SUCCEEDED
[Container] 2024/02/06 04:35:52.574114 Phase context status code:  Message: 
[Container] 2024/02/06 04:35:52.659279 Entering phase INSTALL
[Container] 2024/02/06 04:35:52.660825 Phase complete: INSTALL State: SUCCEEDED
[Container] 2024/02/06 04:35:52.660837 Phase context status code:  Message: 
[Container] 2024/02/06 04:35:52.695195 Entering phase PRE_BUILD
[Container] 2024/02/06 04:35:52.695605 Running command echo `ls -altr`
total 0 drwxr-xr-x 3 root root 17 Feb 6 04:35 .. drwxr-xr-x 2 root root 6 Feb 6 04:35 .

[Container] 2024/02/06 04:35:52.740630 Running command echo `pwd`
/codebuild/output/src2985760278/src

[Container] 2024/02/06 04:35:52.746634 Phase complete: PRE_BUILD State: SUCCEEDED
[Container] 2024/02/06 04:35:52.746647 Phase context status code:  Message: 
[Container] 2024/02/06 04:35:52.786197 Entering phase BUILD
[Container] 2024/02/06 04:35:52.786568 Running command echo Build started on `date`
Build started on Tue Feb 6 04:35:52 UTC 2024

[Container] 2024/02/06 04:35:52.834249 Running command echo Downloading $GRAPHQL_SCHEMA_NAME and copying to artifacts bucket...
Downloading posts.graphql and copying to artifacts bucket...

[Container] 2024/02/06 04:35:52.893635 Running command wget $GRAPHQL_SCHEMA_LOCATION
--2024-02-06 04:35:53--  https://{MyPublicS3}.s3.amazonaws.com/posts.graphql
Resolving {MyPublicS3}.s3.amazonaws.com ({MyPublicS3}.s3.amazonaws.com)... 3.5.19.16, 52.217.232.185, 52.216.250.52, ...
Connecting to {MyPublicS3}.s3.amazonaws.com ({MyPublicS3}.s3.amazonaws.com)|3.5.19.16|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 320 [binary/octet-stream]
Saving to: 'posts.graphql'

     0K                                                       100% 15.1M=0s

2024-02-06 04:35:54 (15.1 MB/s) - 'posts.graphql' saved [320/320]


[Container] 2024/02/06 04:35:54.475584 Running command ls -lrt
total 4
-rw-r--r-- 1 root root 320 Feb  6 04:13 posts.graphql

[Container] 2024/02/06 04:35:54.482683 Running command aws s3 cp $GRAPHQL_SCHEMA_NAME s3://$ARTIFACTS_BUCKET_LOCATION/
Completed 320 Bytes/320 Bytes (2.3 KiB/s) with 1 file(s) remaining
upload: ./posts.graphql to s3://coe-fjwr-test-salesforce-connect-a-artifactsbucket-nxxas80wxq1l/posts.graphql

[Container] 2024/02/06 04:36:13.147228 Running command echo Building resolver source code...
Building resolver source code...

[Container] 2024/02/06 04:36:13.153188 Running command aws s3 sync s3://$QS_S3_BUCKET_NAME/$QS_S3_KEY_PREFIX resolver-build
fatal error: An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied

[Container] 2024/02/06 04:36:13.728179 Command did not exit successfully aws s3 sync s3://$QS_S3_BUCKET_NAME/$QS_S3_KEY_PREFIX resolver-build exit status 1
[Container] 2024/02/06 04:36:13.732795 Phase complete: BUILD State: FAILED
[Container] 2024/02/06 04:36:13.732810 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: aws s3 sync s3://$QS_S3_BUCKET_NAME/$QS_S3_KEY_PREFIX resolver-build. Reason: exit status 1
[Container] 2024/02/06 04:36:13.776316 Entering phase POST_BUILD
[Container] 2024/02/06 04:36:13.776741 Running command echo Build completed on `date`
Build completed on Tue Feb 6 04:36:13 UTC 2024

[Container] 2024/02/06 04:36:13.783083 Phase complete: POST_BUILD State: SUCCEEDED
[Container] 2024/02/06 04:36:13.783094 Phase context status code:  Message: 
[Container] 2024/02/06 04:36:13.912998 Phase complete: UPLOAD_ARTIFACTS State: SUCCEEDED
[Container] 2024/02/06 04:36:13.913022 Phase context status code:  Message: 

It looks like you don't have access to the S3 bucket aws-ia-us-east-1/cfn-ps-salesforce-connect-appsync-rds-postgresql.

Leave the parameters as default except for the following:

  • AvailabilityZones us-east-1a, us-east-1b
  • GraphQLSchemaLocation https://{MyPublicS3}.s3.amazonaws.com/posts.graphql
  • GraphQLSchemaName posts.graphql
  • RDSSchemaLocation https://{MyPublicS3}.s3.amazonaws.com/posts.sql
  • RDSSchemaName posts.sql

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.