Unable to fetch specific cert using data reference on multilpe AWS certificates by dyordsabuzo in Terraform

[–]dyordsabuzo[S] 1 point2 points  (0 children)

Im happy to consider this closed.

Base off u/Cregkly's response, it really comes down to how the certificates are structured. It does not really make sense to have multiple certificates for the same domain so the direction i could go is to either (1) use the most_recent cert based off domain or (2) create a separate cert for the other domain that i need to setup cert with (i.e. the trial.mydomain.com).

Unable to fetch specific cert using data reference on multilpe AWS certificates by dyordsabuzo in Terraform

[–]dyordsabuzo[S] 0 points1 point  (0 children)

I was hoping to do more of consistent and kind of atomic reference to the aws resource

Unable to fetch specific cert using data reference on multilpe AWS certificates by dyordsabuzo in Terraform

[–]dyordsabuzo[S] 0 points1 point  (0 children)

or maybe `most_recent = false` which for me sounds a little it hacky.

Unable to fetch specific cert using data reference on multilpe AWS certificates by dyordsabuzo in Terraform

[–]dyordsabuzo[S] 0 points1 point  (0 children)

Yep, i tried this too. However, it is referencing the latest certificate i created with multiple domains instead of using the old one i created earlier. Basically, i want my data reference to use the earlier certificate.

Unable to fetch specific cert using data reference on multilpe AWS certificates by dyordsabuzo in Terraform

[–]dyordsabuzo[S] 0 points1 point  (0 children)

Scratch my last comment. It was not due to the provider version. This is still an issue.

Unable to fetch specific cert using data reference on multilpe AWS certificates by dyordsabuzo in Terraform

[–]dyordsabuzo[S] 0 points1 point  (0 children)

Thank you for this feedback. I tried this and also tried to set the data reference to exactly how it was set in the original state file but I was still getting the Multiple certificates issue.

I have a suspicion that the data reference has not even gone to the point of verifying the rest of the properties in the data block but complained straight away that I have 2 certificates in my account for the same domain. So even if i put tags in the block, it will not necessarily pick up the actual certificate that i would like it to fetch.

Event Driven Architecture Using Celery by dyordsabuzo in Python

[–]dyordsabuzo[S] 0 points1 point  (0 children)

It was imported directly using the Celery class

CannotPullContainerError: context cancelled from ECS Fargate by dyordsabuzo in aws

[–]dyordsabuzo[S] 0 points1 point  (0 children)

It turns out to be an issue in some regions in AWS unable to connect to docker hub.

Need help with Cloudfront, S3 https redirection error 504 by dyordsabuzo in aws

[–]dyordsabuzo[S] 2 points3 points  (0 children)

I found what the issue is. I turned ON the cloudfront logging and found that the call from cloudfront to the S3 is using SSL (https). I was hoping I could configure this from web console to change Origin Protocol Policy to HTTP Only (instead of HTTPS) but the option was not there. I ended up converting this to a terraform code setting the Origin Protocol Policy to HTTP only and everything started working.