(aws-glue-alpha): Unable to use secret that has been imported using aws_cdk.Fn.import_value() with glue connection #30291
Labels
@aws-cdk/aws-glue
Related to AWS Glue
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p3
Describe the bug
When importing secret using
aws_secretsmanager.Secret.from_secret_complete_arn()
and populating thesecret_complete_arn
with the arn value that has been exported usingCfnOutput
from other stack, it is not possible to use this secret withaws_glue_alpha.Connection
.This problem only occurs when you are trying to import secret using the arn from
import_value
, if the arn is harcoded everything works as supposed.Expected Behavior
This is the expected behaviour when trying to change
SECRET_ID
withsecret.secret_name
from secret imported with harcoded arn. This also populates the secret name in the console.CDK change set:
Current Behavior
This is the behaviour when trying to change
SECRET_ID
withsecret.secret_name
from secret imported with aws_cdk.Fn.import_value() arn. This doesn't populate the secret name in console.CDK change set:
Reproduction Steps
Create secret in a Stack and export it using
CfnOutput
import value in other Stack using `aws_cdk.Fn.import_value()' and create a connection
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.138.0
Framework Version
No response
Node.js Version
20.11.0
OS
MacOS
Language
Python
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: