EB Sample modification for Xray Getting-Started Example #32
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
Current EB Sample isn't applicable for AL1 which is causing all the users of XRay for not getting example of "Getting Started" working properly. Giving below error:
Resource handler returned message: "No Platform named 'arn:aws:elasticbeanstalk:ap-southeast-1::platform/Node.js running on 64bit Amazon Linux' found. (Service: ElasticBeanstalk, Status Code: 400, Request ID: 2ab062a4-b3ca-4b6c-9010-7b4141221ffe)" (RequestToken: f420a69a-dde3-4e9d-7e64-2cf0772a961b, HandlerErrorCode: InvalidRequest)
Description of changes:
To fix this, requesting for this PR to be merged so that sample can be corrected asap for the XRay Service Users with smooth onboarding via Getting Started Example. Below are the changes being done in the attached Zip Code:
=======
PlatformArn:
Fn::Join:
- ":"
- - arn:aws:elasticbeanstalk
- Ref: AWS::Region
- :platform/Node.js 16 running on 64bit Amazon Linux 2/5.6.2
=======
(Platform Name, can be fetched using:
aws elasticbeanstalk list-available-solution-stacks
for configured AWS CLI Region)=======
aws:elasticbeanstalk:environment:proxy:staticfiles:
/static: /static
=======
[Reference: Serving Static Files | AL2]
myapp.zip
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.