Seth Geoghegan
11/05/2021, 3:01 PMsst start
.
sgeoghegan-kas-api-stack | CREATE_FAILED | AWS::CloudFormation::Stack | sgeoghegan-kas-api-stack
❌ sgeoghegan-kas-api-stack failed: ERROR Parameter Name /sgeoghegan/kas/api-url with a different configuration already exists.
Stack sgeoghegan-kas-db-stack
Status: deployed
Stack sgeoghegan-kas-api-stack
Status: failed
Error: ERROR Parameter Name /sgeoghegan/kas/api-url with a different configuration already exists.
Failed to deploy the app
error Command failed with exit code 1.
info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
Seth Geoghegan
11/05/2021, 3:02 PMDerek Kershner
11/05/2021, 3:02 PMSeth Geoghegan
11/05/2021, 3:03 PMSeth Geoghegan
11/05/2021, 3:03 PMsst start
ended up starting with a status of "no changes"Seth Geoghegan
11/05/2021, 3:04 PMDerek Kershner
11/05/2021, 3:04 PMif(!isLocal)
Seth Geoghegan
11/05/2021, 3:04 PM===============
Deploying app
===============
Deploying stacks
✅ sgeoghegan-kas-db-stack (no changes)
✅ sgeoghegan-kas-api-stack (no changes)
Stack sgeoghegan-kas-db-stack
Status: no changes
Stack sgeoghegan-kas-api-stack
Status: no changes
==========================
Starting Live Lambda Dev
==========================
Transpiling Lambda code...
Debug session started. Listening for requests...
Rebuilding infrastructure...
No infrastructure changes detected
Derek Kershner
11/05/2021, 3:04 PMSeth Geoghegan
11/05/2021, 3:05 PMAWS_PROFILE=staging AWS_SDK_LOAD_CONFIG=1 sst start --stage $(whoami)
Derek Kershner
11/05/2021, 3:05 PMSeth Geoghegan
11/05/2021, 3:10 PMsst start
which failed since my stack was trying to create an SSM parameter that already existed.
2. Remove SSM parameter manually in AWS console
3. Deploy stack again via sst start
, which left the client running as expected. However, the stack that creates my API did not output the API URL as expected.
As a result, sst start
is running and I have no idea what URL I should be accessing!Derek Kershner
11/05/2021, 3:11 PMCfnOutput
?Seth Geoghegan
11/05/2021, 3:13 PMconst api = new sst.Api(this, "api", {...})
// Show the endpoint in the output
this.addOutputs({
ApiEndpoint: api.url
});
Seth Geoghegan
11/05/2021, 3:13 PMDerek Kershner
11/05/2021, 3:14 PMSeth Geoghegan
11/05/2021, 3:14 PMSeth Geoghegan
11/05/2021, 3:14 PMSeth Geoghegan
11/05/2021, 3:28 PMDerek Kershner
11/05/2021, 4:02 PMI gotta buy that new CDK book@Seth Geoghegan, which?
Seth Geoghegan
11/05/2021, 4:02 PMFrank
Frank
Frank
sst start
not deploying the latest changes.Seth Geoghegan
11/05/2021, 4:15 PM0.50.1
Frank