Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

events.create_connection does not create secret #7698

Open
tomlarkworthy opened this issue May 16, 2024 · 1 comment
Open

events.create_connection does not create secret #7698

tomlarkworthy opened this issue May 16, 2024 · 1 comment

Comments

@tomlarkworthy
Copy link

tomlarkworthy commented May 16, 2024

You have the issue symptoms written in a comment in source

Something to consider:

In AWS after creating a connection, the follow up describe_connection response will have a SecretArn set, which will contain the AuthParameters.

connection_response = boto3.client("events").create_connection(
        Name="my-destination",
        Description="my-destination",
        AuthorizationType='API_KEY',
        AuthParameters = {
            'ApiKeyAuthParameters': {
                'ApiKeyName': 'X-Api-Key',
                'ApiKeyValue': 'password'
            }
        }
    )

describe_connection should return a SecretArn, which is transparently created as the "ApiKeyAuthParameters" dictionary in practice (i.e. its a JSON document with two fields).

I am not totally sure of the full behaviour. I guess it requires some empiricism to figure out. Let me know if filing these vague tickets is helpful.

@bblommers
Copy link
Collaborator

Hi @tomlarkworthy, that's definitely helpful - we should be able to figure out what AWS exactly does here behind the scenes, it seems fairly straightforward.
Thanks for raising this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants