Comments (3)
Thanks for reaching out. I'll link the CloudFormation package and deploy command documentation for reference. Have you tried using --parameter-overrides
in your deploy
command to pass the values?
For example:
invoke.yaml
:
AWSTemplateFormatVersion: '2010-09-09'
Description: Invoke main process via Lambda
Parameters:
FunctionS3Bucket:
Type: String
Description: S3 bucket where the Lambda function code is stored
FunctionS3Key:
Type: String
Description: S3 key (file path) of the Lambda function code
LambdaRoleArn:
Type: String
Description: ARN of the IAM role for the Lambda function
Resources:
InvocationLambda:
Type: AWS::Lambda::Function
Properties:
FunctionName: SampleLambda
Handler: lambda_handler
Code:
S3Bucket:
Ref: FunctionS3Bucket
S3Key:
Fn::Sub: ${FunctionS3Key}
Runtime: python3.12
Role:
Ref: LambdaRoleArn
package
command:
aws cloudformation package \
--template-file invoke.yaml \
--s3-bucket my-bucket \
--s3-prefix lambda-package \
--output-template-file packaged-invoke.yaml
packaged-invoke.yaml
:
AWSTemplateFormatVersion: '2010-09-09'
Description: Invoke main process via Lambda
Parameters:
FunctionS3Bucket:
Type: String
Description: S3 bucket where the Lambda function code is stored
FunctionS3Key:
Type: String
Description: S3 key (file path) of the Lambda function code
LambdaRoleArn:
Type: String
Description: ARN of the IAM role for the Lambda function
Resources:
InvocationLambda:
Type: AWS::Lambda::Function
Properties:
FunctionName: SampleLambda
Handler: lambda_handler
Code:
S3Bucket:
Ref: FunctionS3Bucket
S3Key:
Fn::Sub: ${FunctionS3Key}
Runtime: python3.12
Role:
Ref: LambdaRoleArn
deploy
command:
aws cloudformation deploy \
--template-file packaged-invoke.yaml \
--stack-name my-stack \
--parameter-overrides \
FunctionS3Bucket=my-bucket\
FunctionS3Key=lambda-package/lambda_function.zip \
LambdaRoleArn=arn:aws:iam::<acccountid>:role/abc
from aws-cli.
cloudformation package deploy response requested customization p2 and removed labels 13 hours ago.customization p2 and removed investigating in the main stream in it. for the given time period and issues.
from aws-cli.
Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.
from aws-cli.
Related Issues (20)
- `GLIBC_2.28' not found with aws-actions/configure-aws-credentials@v4 action HOT 2
- aws-cli/2.17.8 on Linux is flagged as vulnerable to CVE-2024-0397 HOT 4
- AWS CLI SSO stuck in browser loading state when click Allow
- Feature request: Support publishing SAM template to SAR that leverages an existing macro HOT 3
- OpenSSL 1.1.1y out of date in ARM distributions HOT 7
- aws sso login still broken for profiles outside of us-east-1 HOT 2
- --profile mandatory even if there is just one profile HOT 2
- setup.py(short issue description) HOT 1
- Option to preserve `role_session_name` when chaining roles HOT 3
- aws rds describe-db-instances missing LatestRestorableTime in output HOT 2
- Installing in relative path installs broken symlinks HOT 2
- awscli IAM list-users and list-access-keys doesn't parse max-items to request body HOT 2
- `aws ec2-instance-connect` times out too fast on MacOS HOT 2
- Support `DescribeExection` for Express Step Functions HOT 1
- aws ec2 import-image doesn't honour the DeviceName in the disk-container file HOT 3
- Example of how to retrieve all logs from a log group stream
- get authentication token / password for IAM secured elasticache (Redis OSS)
- Memory leak during recursive deletion of files from S3 bucket
- aws cloudformation package mixes two lambda functions with wrong indentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-cli.