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

Error with cdk version #50

Open
rafaelbarioni opened this issue Jan 6, 2023 · 1 comment
Open

Error with cdk version #50

rafaelbarioni opened this issue Jan 6, 2023 · 1 comment

Comments

@rafaelbarioni
Copy link

Hello.

I´m trying to deploy in my AWS account here, but I get error with CDK version.

`
Do you wish to deploy these changes (y/n)? y
PowerTunerInfraStack: deploying...
PowerTunerInfraStack: creating CloudFormation changeset...

❌ PowerTunerInfraStack failed: Error: Failed to create ChangeSet cdk-deploy-change-set on PowerTunerInfraStack: FAILED, Transform AWS::Serverless-2016-10-31 failed with: Invalid Serverless Application Specification document. Number of errors found: 1. Resource with id [powerTuner] is invalid. User: arn:aws:sts::521916331075:assumed-role/AWSReservedSSO_Developers-1_f6c82285d21ec261/rafael.barioni@assertivainformacoes.com is not authorized to perform: serverlessrepo:CreateCloudFormationTemplate on resource: arn:aws:serverlessrepo:us-east-1:451282441545:applications/aws-lambda-power-tuning
at C:\Users\rafael.barioni\git\aws-power-tuner-ui\cdk\node_modules\aws-cdk\lib\api\util\cloudformation.ts:265:11
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at waitFor (C:\Users\rafael.barioni\git\aws-power-tuner-ui\cdk\node_modules\aws-cdk\lib\api\util\cloudformation.ts:220:20)
at waitForChangeSet (C:\Users\rafael.barioni\git\aws-power-tuner-ui\cdk\node_modules\aws-cdk\lib\api\util\cloudformation.ts:251:15)
at prepareAndExecuteChangeSet (C:\Users\rafael.barioni\git\aws-power-tuner-ui\cdk\node_modules\aws-cdk\lib\api\deploy-stack.ts:337:32)
at CdkToolkit.deploy (C:\Users\rafael.barioni\git\aws-power-tuner-ui\cdk\node_modules\aws-cdk\lib\cdk-toolkit.ts:209:24)
at initCommandLine (C:\Users\rafael.barioni\git\aws-power-tuner-ui\cdk\node_modules\aws-cdk\lib\cli.ts:341:12)

NOTICES

19836 AWS CDK v1 has entered maintenance mode

    Overview: AWS CDK v1 has entered maintenance mode on June 1, 2022.
              Migrate to AWS CDK v2 to continue to get the latest features
              and fixes!

    Affected versions: framework: 1.*, cli: 1.*

`

I´m not very familiar with Node code.
How could I solve this issue, please?

Thanks a lot

@abhishekdipu
Copy link

I'm also getting the same error. Looks like CDK need to updated for this project.
Screenshot 2023-08-22 at 1 09 27 AM

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

No branches or pull requests

2 participants