Skip to content

Instantly share code, notes, and snippets.

@tomekklas
tomekklas / CopyTags.yml
Last active January 12, 2022 18:54
Copy tags from EC2 to associated resources
---
AWSTemplateFormatVersion: 2010-09-09
Description: Copy tags from EC2 to associated resources
Resources:
Role:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
<?php
$data = (object)array(
"html" => "<foo bar=\"baz\"/> &amp;",
"arabic" => "العربية al-ʿarabiyyah, IPA: [æl ʕɑrɑˈbijjɐ], or عربي ʿarabī",
"hebrew" => "עִבְרִית, Ivrit",
"chinese" => "汉语/漢語 Hanyu; 华语/華語 Huáyǔ; 中文 Zhōngwén",
"korean" => "한국어/조선말",
"japanese" => "日本語 Nihongo",
"umlauts" => "äüöãáàß",