I'm currently using Traefik and Lego in order to have HTTPS connection for my docker containers (as mentioned here) In the following documentation, it's mentioned that I need to use the following provider to do DNS Challenge.
But I get this error:
AccessDeniedException: User: arn:aws:sts::<USER_ID>:assumed-role/AmazonLightsailInstanceRole/<AN_ID> is not authorized to perform: lightsail:CreateDomainEntry on resource: arn:aws:lightsail:us-east-1:<INSTANCE_ID>:*
and another for DeleteDomainEntry, even though I have lightsail:*
on Resource: *
permission on the IAM user used for configuration.
If I understand correctly Lightsail is managed separately for the other AWS services and thus we need to use STS for connecting to it (tell me if I'm wrong). So my question is this, how can I set the permissions for the temporary token to be able to do CreateDomainEntry and DeleteDomainEntry?
Further information
- My instance's region is
eu-west-3
(I tried changing the region in Lego config, doesn't work) - The <USER_ID> seen in the error does not correspond to the id found in the ARN of the domain. It correspond to the first number in the
supportCode
when doingaws lightsail get-domains --region us-east-1
in the CLI. - Lego and Traefik do not call the AssumeRole directly and do not create the temporary token (checked source code)
- I'm using
AWS_ACCESS_KEY_ID_FILE
andAWS_SECRET_ACCESS_KEY_FILE
in Traefik environment configuration.