We have a Cloudformation stack, we export a ARN which is created by the stack and import it inside the same stack. When we try to delete the stack, It tries to delete the output first and realizes the output is in use and does not delete the stack.
We are looking for guidance on how to redeploy the stack or edit the stack so we can remove the dependency.
We tried editing the stack in config editor, but the changes not being saved and still get the same error when trying to delete the stack.
"UserPoolArn":{
"Description":"The ARN for Cognito User Pool",
"Value":{
"Fn::GetAtt":[
"userPool",
"Arn"
]
},
"Export":{
"Name":"organization:XX:UsersPoolArn"
}
Import within the same cf stack
"Environment":{
"Variables":{
"USER_POOL":{
"Fn::ImportValue":"organization:XX:UsersPoolArn"
}
}
}
}
how we can remove the offending output key/value?