Skip to content

Commit

Permalink
chore(lambda): replace rsync with cp in bundling integ test (#9530)
Browse files Browse the repository at this point in the history
`rsync` is no longer present in the latest
`amazon/aws-sam-cli-build-image-python3.6` image.

This is similar to #9355 


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
jogold authored Aug 7, 2020
1 parent 6625cf7 commit e146c23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ new lambda.Function(this, 'Function', {
command: [
'bash', '-c', `
pip install -r requirements.txt -t /asset-output &&
rsync -r . /asset-output
cp -au . /asset-output
`,
],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-lambda/test/integ.bundling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class TestStack extends Stack {
image: lambda.Runtime.PYTHON_3_6.bundlingDockerImage,
command: [
'bash', '-c', [
'rsync -r . /asset-output',
'cp -au . /asset-output',
'cd /asset-output',
'pip install -r requirements.txt -t .',
].join(' && '),
Expand Down

0 comments on commit e146c23

Please sign in to comment.