aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.65k stars 3.91k forks source link

(Amplify): SSM Secure reference is not supported in: [AWS::Amplify::App/Properties/OauthToken] #11858

Open markusl opened 3 years ago

markusl commented 3 years ago

Setting up a GitHubSourceCodeProvider seems to fail at deployment time if using SecretValue.ssmSecure.

❌ Stack failed: Error [ValidationError]: SSM Secure reference is not supported in: [AWS::Amplify::App/Properties/OauthToken]

Reproduction Steps


    const amplifyApp = new amplify.App(this, 'app', {
      sourceCodeProvider: new amplify.GitHubSourceCodeProvider({
        repository,
        owner: 'markusl',
        oauthToken: cdk.SecretValue.ssmSecure('GITHUB_OAUTH_TOKEN'),
      }),
    });

What did you expect to happen?

I would expect this to work.

Environment

Other


This is :bug: Bug Report

callumthomson commented 3 years ago

Encountering this issue too

almassapargali commented 3 years ago

Is there any plans to support this?

PatMyron commented 2 years ago

https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/227