Infra/AWS
Failed Environment update activity. Reason: Configuration validation exception: Invalid option specification (Namespace: 'aws:elasticbeanstalk:container:nodejs:staticfiles', OptionName: '/static'): Unknown configuration setting.
하우아유두잉
2020. 8. 7. 17:01
eb config 파일 양식이 버전이 올라가면서 바뀐거 같다.
그래서 수정해줘야한다.
.ebextensions/options.config 파일 수정
aws:elasticbeanstalk:container:nodejs:staticfiles:
to
aws:elasticbeanstalk:environment:proxy:staticfiles:
결과
option_settings:
aws:elasticbeanstalk:customoption:
NewSignupEmail: me@example.com
aws:elasticbeanstalk:application:environment:
THEME: "flatly"
AWS_REGION: '`{"Ref" : "AWS::Region"}`'
STARTUP_SIGNUP_TABLE: '`{"Ref" : "StartupSignupsTable"}`'
NEW_SIGNUP_TOPIC: '`{"Ref" : "NewSignupTopic"}`'
aws:elasticbeanstalk:container:nodejs:
ProxyServer: nginx
aws:elasticbeanstalk:environment:proxy:staticfiles:
/static: /static
참고
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-container.html