Comments (4)
from aws-cloudformation-resource-providers-awsutilities-commandrunner.
@craigataws @shantgup @cfn-rpdk-ci @amazon-auto @sheldonkwoodward
from aws-cloudformation-resource-providers-awsutilities-commandrunner.
Please make sure you indent your yaml correctly:
AWSTemplateFormatVersion: 2010-09-09
Parameters:
Keyid:
Description: "Key Id for the KMS key to enable key rotation"
Default: 8eef2781-9753-47fd-9ee4-892f16e3d973
Type: String
RegionForKMSkey:
Description: "Please enter the Region where your KMS key is present"
Default: us-east-1
Type: String
InstanceRole:
Description: "Please enter the Role Name that Ec2 instance will assume to execute the command"
Default: ""
Type: String
Resources:
Commandrunner:
Type: "AWSUtility::CloudFormation::CommandRunner"
Properties:
Command: !Sub 'aws kms enable-key-rotation --key-id ${Keyid} --region ${RegionForKMSkey} && echo "Key rotation enabled successfully" > /command-output.txt'
Role: !Ref InstanceRole
Outputs:
Commands:
Description: "Echo command Text"
Value:
"Fn::GetAtt": Commandrunner.Output
from aws-cloudformation-resource-providers-awsutilities-commandrunner.
I am facing the same issue "waitcondition timed out. received 0 conditions when expecting 1" while creating a stack with CommandRunner resource.
AWSTemplateFormatVersion: 2010-09-09
Description: >-
RAP CloudFormation Template. This template is intended for creating stack in
the existing VPC using current VPC,Internet Gateway and NAT Gateway etc. This
template will create new routes, security groups, roles, policies, S3 buckets,
MSK cluster, Redshift cluster etc.
Parameters:
ENV:
Type: String
Description: Environment to run CFN template
Default: dev
Resources:
Command:
Type: 'AWSUtility::CloudFormation::CommandRunner'
Properties:
Command: echo Testing 1..2..3 > /command-output.txt
Outputs:
Output:
Description: The output of the CommandRunner.
Value: !GetAtt Command.Output
Did anyone get a resolution to this issue?
from aws-cloudformation-resource-providers-awsutilities-commandrunner.
Related Issues (20)
- Failing when CommandRunner is run in a private subnet HOT 5
- Improvement: use YAML instead of JSON for the BaseTemplate HOT 2
- New functionality: support tagging HOT 3
- New functionality: add Teardown parameter HOT 1
- Make instance type OR AZ configurable. HOT 4
- You do not have permissions to make the TerminateInstances API call. Please try again with the necessary permissions. HOT 2
- Build.sh not working even after changing the instance type HOT 1
- Template contains errors.: Template format error: Unrecognized resource types: [AWSUtility::CloudFormation::CommandRunner] HOT 1
- CommandRunner not terminating ec2 instances on CloudFormation deployment HOT 2
- register.sh fails if uuidgen isn't installed HOT 1
- SecurityGroupId cannot use multiple values for individual parameter
- Re: error: subnet does not have internet access
- DynamoDB - CFT Import error
- Fixed: Cannot run register.sh in CloudShell HOT 1
- Unable to run aws ecs update-service --region us-east-1 --cluster xxxxxx --service xxxxxxxx --deployment-configuration '{"deploymentCircuitBreaker":{"enable":true,"rollback":true},"maximumPercent":200,"minimumHealthyPercent":100}' > ./command-output.txt ```` HOT 2
- Encrypted EBS Volumes and Snapshots Support
- Using Change Sets Causes "Internal Failure"
- Multiple Outputs from the command HOT 1
- Get outputs from other resource HOT 2
- Incorrect logical resource name in some README examples HOT 1
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-cloudformation-resource-providers-awsutilities-commandrunner.