Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions packages/core/src/shared/sam/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,6 @@ export async function runDeploy(arg: any, wizardParams?: DeployParams): Promise<
throw ToolkitError.chain(error, 'Failed to build SAM template', { details: { ...buildFlags } })
}

// Pass built template to deployFlags
const templatePath = vscode.Uri.joinPath(params.projectRoot, '.aws-sam', 'build', 'template.yaml').fsPath
deployFlags.push('--template-file', `${templatePath}`)

// Create a child process to run the SAM deploy command
const deployProcess = new ChildProcess(samCliPath, ['deploy', ...deployFlags], {
spawnOptions: await addTelemetryEnvVar({
Expand Down
6 changes: 0 additions & 6 deletions packages/core/src/test/shared/sam/deploy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -709,8 +709,6 @@ describe('SAM Deploy', () => {
'--parameter-overrides',
`ParameterKey=SourceBucketName,ParameterValue=${mockDeployParams.SourceBucketName} ` +
`ParameterKey=DestinationBucketName,ParameterValue=${mockDeployParams.DestinationBucketName}`,
'--template-file',
vscode.Uri.joinPath(projectRoot, '.aws-sam', 'build', 'template.yaml').fsPath,
],
{
spawnOptions: {
Expand Down Expand Up @@ -787,8 +785,6 @@ describe('SAM Deploy', () => {
'--parameter-overrides',
`ParameterKey=SourceBucketName,ParameterValue=${mockDeployParams.SourceBucketName} ` +
`ParameterKey=DestinationBucketName,ParameterValue=${mockDeployParams.DestinationBucketName}`,
'--template-file',
vscode.Uri.joinPath(projectRoot, '.aws-sam', 'build', 'template.yaml').fsPath,
],
{
spawnOptions: {
Expand Down Expand Up @@ -867,8 +863,6 @@ describe('SAM Deploy', () => {
'--parameter-overrides',
`ParameterKey=SourceBucketName,ParameterValue=${mockDeployParams.SourceBucketName} ` +
`ParameterKey=DestinationBucketName,ParameterValue=${mockDeployParams.DestinationBucketName}`,
'--template-file',
vscode.Uri.joinPath(projectRoot, '.aws-sam', 'build', 'template.yaml').fsPath,
],
{
spawnOptions: {
Expand Down
2 changes: 0 additions & 2 deletions packages/core/src/testInteg/sam.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -883,8 +883,6 @@ describe('SAM Integration Tests', async function () {
'--capabilities',
'CAPABILITY_IAM',
'CAPABILITY_NAMED_IAM',
'--template-file',
vscode.Uri.joinPath(mockDeployParams.projectRoot, '.aws-sam', 'build', 'template.yaml').fsPath,
])

// Check that runInTerminal is called with the correct arguments for deploy
Expand Down
3 changes: 3 additions & 0 deletions packages/toolkit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 3.33.0 2024-11-06
- **Bug Fix** SAM: Save SAM deploy parameters to correct samconfig.toml in project folder

## 3.31.0 2024-10-30

- **Feature** SAM: Added support for Java 21 Lambda runtime
Expand Down
Loading