# AWS Cognito Error

**URL:** <https://discuss.hashicorp.com/t/aws-cognito-error/66852>\
**Category:** AWS\
**Created:** [May 9, 2024, 2:03pm UTC](https://discuss.hashicorp.com/t/aws-cognito-error/66852 "2024-05-09T14:03:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pance02](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/pance02/32/41605_2.png) [@pance02](https://discuss.hashicorp.com/u/pance02)\
**Post date:** [May 9, 2024, 2:03pm UTC](https://discuss.hashicorp.com/t/aws-cognito-error/66852/1 "2024-05-09T14:03:32Z")

</div>

Hello, i am trying to run terraform apply on test env and i am getting this error:  
2024-05-09T13:55:04.2856577Z e[1me[31mError: e[0me[0me[1mError updating Cognito Identity Provider: InvalidParameterException: Unable to contact well-known endpointe[0m

2024-05-09T13:55:04.2909110Z

2024-05-09T13:55:04.2909725Z e[0m on aws\_authorizer.tf line 214, in resource “aws\_cognito\_identity\_provider” “take-cognito-idp-partnerhub”:

2024-05-09T13:55:04.2910104Z 214: resource “aws\_cognito\_identity\_provider” “take-cognito-idp-partnerhub” e[4m{e[0m

2024-05-09T13:55:04.2910322Z e[0m

2024-05-09T13:55:04.2910462Z e[0me[0m

2024-05-09T13:55:04.3032717Z

2024-05-09T13:55:04.3095898Z ##[error]Bash exited with code ‘1’.

2024-05-09T13:55:04.3105175Z ##[section]Finishing: Terraform Apply

I am running this from an Azure DevOps pipeline MS hosted Agent.  
I cannot find a concrete solution for this error.

This is the resource block that is affected:

> resource “aws\_cognito\_identity\_provider” “take-cognito-idp-partnerhub” {  
> provider\_name = “PartnerHub”  
> provider\_type = “OIDC”  
> user\_pool\_id = aws\_cognito\_user\_pool.take-cognito-pool-customers.id
> 
> provider\_details = {  
> authorize\_scopes = “openid”  
> attributes\_request\_method = “GET”  
> oidc\_issuer = lookup(local.context\_variables[terraform.workspace], “partnerhub\_oidc\_issuer”)  
> client\_id = lookup(local.context\_variables[terraform.workspace], “partnerhub\_client\_id”)  
> }
> 
> attribute\_mapping = {  
> “custom:restaurantIds” = “rids”  
> }
> 
> depends\_on = [  
> aws\_cognito\_user\_pool.take-cognito-pool-customers  
> ]  
> }

 ![image](https://global.discourse-cdn.com/hashicorp/original/3X/2/4/24b0442c0575e30fc771331670184bd99cecc21a.png)

I am searching for any potential solutions ideas on how to solve this,  
Thanks !

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/hashicorp/original/1X/79bf76adfd92a75631996933098f9ce29d37abf3.svg) [@system](https://discuss.hashicorp.com/u/system)\
**Post date:** [November 5, 2024, 2:04pm UTC](https://discuss.hashicorp.com/t/aws-cognito-error/66852/2 "2024-11-05T14:04:07Z")

</div>

Closed on November 5, 2024, 2:04pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
