TechToSpeech / terraform-aws-serverless-static-wordpress

Terraform module for deploying Serverless Static Wordpress on AWS
GNU General Public License v3.0
196 stars 69 forks source link

ResourceInitializationError: failed to validate logger args: create stream has been retried 1 times: failed to create Cloudwatch log stream: MissingEndpoint: 'Endpoint' configuration is required for this service : exit status 1 #74

Closed Droshow closed 2 years ago

Droshow commented 2 years ago

Hello Guys,

I think one last piece is missing for me to make this Pete's masterpiece to work.

I think Docker and Cloudwatch are not communicating well, but when I check TaskDefinition , it seems that containerDefinitions are set correctly. Something I might have missed during Terraform apply, or what might it be. When I check Cloudwatch log groups, indeed I do not see any streams, but isn't this started by aws logger? Thank you

"ipcMode": null, "executionRoleArn": "arn:aws:iam::961477247679:role/inexhaustible_WordpressTaskRole", "containerDefinitions": [ { "dnsSearchDomains": null, "environmentFiles": null, "logConfiguration": { "logDriver": "awslogs", "secretOptions": null, "options": { "awslogs-group": "/aws/ecs/inexhaustible-serverless-wordpress-container", "awslogs-region": "http://inex.life.s3-website-us-east-1.amazonaws.com", "awslogs-stream-prefix": "ecs" } },

Droshow commented 2 years ago

I think the problem was in "awslogs-region" cuz when I just set it to region, the container started to run without any issues.

Droshow commented 2 years ago

it was me screwing up something during implementation...

Droshow commented 2 years ago

close