Skip to content

Instantly share code, notes, and snippets.

View PatMyron's full-sized avatar
☁️
cfn-lint / tflint maintainer emeritus

Pat Myron PatMyron

☁️
cfn-lint / tflint maintainer emeritus
  • https://www.linkedin.com/in/patrickmyron/
  • USA
View GitHub Profile
@PatMyron
PatMyron / CloudFormationResourceSpecification.json
Last active August 14, 2020 17:14
CloudFormationResourceSpecificationWithFix.json
This file has been truncated, but you can view the full file.
{
"PropertyTypes": {
"AWS::AppMesh::VirtualRouter.PortMapping": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualrouter-portmapping.html",
"Properties": {
"Port": {
"Required": true,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualrouter-portmapping.html#cfn-appmesh-virtualrouter-portmapping-port",
"PrimitiveType": "Integer",
"UpdateType": "Mutable"
@PatMyron
PatMyron / template.yaml
Created December 4, 2019 00:11
Template format error: Unrecognized resource types
Parameters:
CreateResource:
Default: false
Type: String
AllowedValues: [true, false]
Conditions:
ShouldCreateResource:
!Equals [true, !Ref CreateResource]
Resources:
Macro:
Resources:
AdministrationRole:
Type: AWS::IAM::Role
Properties:
RoleName: AWSCloudFormationStackSetAdministrationRole
AssumeRolePolicyDocument:
Version: 2012-10-17
Statement:
- Effect: Allow
Principal:
Event data, including the Facebook IDs of those who are invited and RSVP, is stored in Firebase.
No other sensitive data is stored anywhere.
var els = document.getElementsByTagName('span');
var h3s = document.getElementsByTagName('h3');
j=0;
for(i=0; i < els.length; i+=2) {
prop = els[i].getAttribute('itemprop');
if(prop) {
console.log(h3s[j++].innerHTML + ", " + els[i].innerHTML + ", " + els[i+1].innerHTML);
}
}