julianghionoiu / dpnt-coverage

Collect coverage from SRCS files
0 stars 0 forks source link

Local Serverless actions/commands failing: 'deep:1.ECS_ACCOUNT_ID' could not be found. #25

Closed neomatrix369 closed 6 years ago

neomatrix369 commented 6 years ago

Command:

serverless deploy --stage dev 

Error:

 Serverless Warning --------------------------------------

  A valid undefined to satisfy the declaration 'deep:3.ECS_ACCOUNT_ID' could not be found.

Serverless: WARNING: Missing "tenant" and "app" properties in serverless.yml. Without these properties, you can not publish the service to the Serverless Platform.
Serverless: Packaging service...

  Serverless Error ---------------------------------------

  ServerlessError: AWS provider credentials not found. Learn how to set up AWS provider credentials in our docs here: <http://bit.ly/aws-creds-setup>.

  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com

  Your Environment Information -----------------------------
     OS:                     darwin
     Node Version:           9.8.0
     Serverless Version:     1.30.1
julianghionoiu commented 6 years ago

There seems to be a mismatch between the local config and the one that I use for dev.

Here is how my "dev" config looks like:

S3_ENDPOINT: "https://s3.eu-west-2.amazonaws.com"
S3_REGION: "eu-west-2"
S3_BUCKET_ARN: "arn:aws:s3:::tdl-test-auth"

ECR_BASE_URL: "577770582757.dkr.ecr.eu-west-1.amazonaws.com"

ECS_ENDPOINT: "ecs.eu-west-1.amazonaws.com"
ECS_REGION: "eu-west-1"
ECS_ACCOUNT_ID: "577770582757"
ECS_TASK_CLUSTER: "dpnt-coverage-dev"
ECS_TASK_DEFINITION_PREFIX: "dpnt-coverage-dev-"
ECS_TASK_LAUNCH_TYPE: "FARGATE"
ECS_VPC_SUBNET: "subnet-cf2386b9"
ECS_VPC_SECURITY_GROUP: "sg-c97716b4"
ECS_VPC_ASSIGN_PUBLIC_IP: "ENABLED"

SQS_ENDPOINT: "https://sqs.eu-west-1.amazonaws.com"
SQS_REGION: "eu-west-1"
SQS_QUEUE_URL: "https://sqs.eu-west-1.amazonaws.com/577770582757/test-events"
SQS_QUEUE_ARN: "arn:aws:sqs:eu-west-1:577770582757:test-events"
julianghionoiu commented 6 years ago

I have noticed that there is no ECS_ACCOUNT_ID in the local.config