Infra/AWS

The configuration file __MACOSX/eb-node-express-sample-v1.1/.ebextensions/._create-sns-topic.config in application version 1.2 contains invalid YAML or JSON. YAML exception: Invalid Yaml: unacceptable character '�' (0x0) special characters are not all..

하우아유두잉 2020. 8. 7. 16:53

 

 

 

 

Elasticbeanstalk에 node.js 어플리케이션을 배포하기위해 .zip 파일을 업로드하면

아래와 같은 에러 이벤트가 발생하는 경우가 있다.

The configuration file __MACOSX/eb-node-express-sample-v1.1/.ebextensions/._create-sns-topic.config in application version 1.2 contains invalid YAML or JSON. YAML exception: Invalid Yaml: unacceptable character '�' (0x0) special characters are not allowed in "", position 0, JSON exception: Invalid JSON: Unexpected character (�) at position 0.. Update the configuration file.

 

OSX 맥 환경에서 .zip 파일을 만들때 발생하는 현상으로

아래의 명령을 해주면 된다.

$ zip -d target.zip __MACOSX/\*

 


 

 

 

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/nodejs-dynamodb-tutorial.html

 

Deploying a Node.js application with DynamoDB to Elastic Beanstalk - AWS Elastic Beanstalk

You can run all commands in this tutorial on a Linux virtual machine, an OS X machine, or an Amazon EC2 instance running Amazon Linux. If you need a development environment, you can launch a single-instance Elastic Beanstalk environment and connect to it w

docs.aws.amazon.com