Skip to content

Instantly share code, notes, and snippets.

@robjshaw
Created October 24, 2014 04:08
Show Gist options
  • Select an option

  • Save robjshaw/c5c631a656b8fff17f3e to your computer and use it in GitHub Desktop.

Select an option

Save robjshaw/c5c631a656b8fff17f3e to your computer and use it in GitHub Desktop.
// aws cloudformation describe-stacks --region ap-southeast-2 | jq '.Stacks[] | select( .Parameters[0].ParameterValue == "s3://" ) | { StackId }'
{
"StackId": "arn:aws:cloudformation:ap-southeast-2:xxxxxxx",
"Description": "Cache Cluster",
"Parameters": [
{
"ParameterValue": "SecurityGroupWebCacheCluster",
"ParameterKey": "SecurityGroup"
},
{
"ParameterValue": "SubnetGroupCacheWebProduction",
"ParameterKey": "SubnetGroup"
},
{
"ParameterValue": "cache.m1.small",
"ParameterKey": "NodeType"
},
{
"ParameterValue": "prod",
"ParameterKey": "ApplicationEnvironment"
},
{
"ParameterValue": "xxxxxx-cache-prod",
"ParameterKey": "Label"
}
],
"Tags": [],
"Outputs": [
{
"Description": "Cache cluster resource name",
"OutputKey": "CacheClusterId",
"OutputValue": "xxxxxx-cache-prod"
}
],
"StackStatusReason": null,
"CreationTime": "2014-09-29T04:47:20.328Z",
"StackName": "core-xxxxxxx-cache-production",
"NotificationARNs": [],
"StackStatus": "CREATE_COMPLETE",
"DisableRollback": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment