diff --git a/libBuild.sh b/libBuild.sh index 524fe1b6..ad504195 100644 --- a/libBuild.sh +++ b/libBuild.sh @@ -4,55 +4,55 @@ set -Eeuo pipefail # Regions that support arm64 architecture REGIONS_ARM=( - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-south-1 - ap-southeast-1 - ap-southeast-2 - ap-southeast-3 - ca-central-1 - eu-central-1 - eu-north-1 - eu-south-1 - eu-west-1 - eu-west-2 - eu-west-3 - me-south-1 - sa-east-1 + # af-south-1 + # ap-northeast-1 + # ap-northeast-2 + # ap-northeast-3 + # ap-south-1 + # ap-southeast-1 + # ap-southeast-2 + # ap-southeast-3 + # ca-central-1 + # eu-central-1 + # eu-north-1 + # eu-south-1 + # eu-west-1 + # eu-west-2 + # eu-west-3 + # me-south-1 + # sa-east-1 us-east-1 - us-east-2 - us-west-1 + # us-east-2 + # us-west-1 us-west-2 ) REGIONS_X86=( - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-south-1 - ap-south-2 - ap-southeast-1 - ap-southeast-2 - ap-southeast-3 - ap-southeast-4 - ca-central-1 - eu-central-1 - eu-central-2 - eu-north-1 - eu-south-1 - eu-south-2 - eu-west-1 - eu-west-2 - eu-west-3 - me-central-1 - me-south-1 - sa-east-1 + # af-south-1 + # ap-northeast-1 + # ap-northeast-2 + # ap-northeast-3 + # ap-south-1 + # ap-south-2 + # ap-southeast-1 + # ap-southeast-2 + # ap-southeast-3 + # ap-southeast-4 + # ca-central-1 + # eu-central-1 + # eu-central-2 + # eu-north-1 + # eu-south-1 + # eu-south-2 + # eu-west-1 + # eu-west-2 + # eu-west-3 + # me-central-1 + # me-south-1 + # sa-east-1 us-east-1 - us-east-2 - us-west-1 + # us-east-2 + # us-west-1 us-west-2 ) @@ -243,7 +243,7 @@ function publish_layer { hash=$( hash_file $layer_archive | awk '{ print $1 }' ) - bucket_name="nr-layers-${region}" + bucket_name="nr-test-saket-layers-${region}" s3_key="$( s3_prefix $runtime_name )/${hash}.${arch}.zip" compat_list=( $runtime_name ) @@ -343,7 +343,7 @@ function publish_docker_ecr { # public ecr repository name # maintainer can use this("q6k3q1g1") repo name for testing - repository="x6n7b2o2" + repository="q6k3q1g1" # copy dockerfile cp ../Dockerfile.ecrImage . diff --git a/python/publish-layers.sh b/python/publish-layers.sh index 0a38eb10..6ef36df9 100755 --- a/python/publish-layers.sh +++ b/python/publish-layers.sh @@ -48,8 +48,9 @@ function build_python_layer { exit 1; fi - pip install --no-cache-dir -qU "newrelic==${NEWRELIC_AGENT_VERSION}" newrelic-lambda -t $BUILD_DIR/lib/python${python_version}/site-packages - cp newrelic_lambda_wrapper.py "$BUILD_DIR/lib/python${python_version}/site-packages/newrelic_lambda_wrapper.py" + # Modifying path as per https://docs.aws.amazon.com/lambda/latest/dg/packaging-layers.html + pip install --no-cache-dir -qU "newrelic==${NEWRELIC_AGENT_VERSION}" newrelic-lambda -t $BUILD_DIR + cp newrelic_lambda_wrapper.py "$BUILD_DIR/newrelic_lambda_wrapper.py" find $BUILD_DIR -name '__pycache__' -exec rm -rf {} + download_extension $arch