Created
September 3, 2013 01:43
-
-
Save adenot/6418844 to your computer and use it in GitHub Desktop.
CloudFormation template validation using a proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| include 'aws.phar'; | |
| use Aws\CloudFormation\CloudFormationClient; | |
| $client = CloudFormationClient::factory(array( | |
| 'region' => 'ap-southeast-2', | |
| 'key' => '__redacted__', | |
| 'secret' => '__redacted __', | |
| 'curl.options' => array( | |
| CURLOPT_PROXY => '__redacted__', | |
| CURLOPT_PROXYPORT => 8080, | |
| CURLOPT_PROXYUSERPWD => '__redacted:__redacted__', | |
| CURLOPT_SSL_VERIFYPEER => FALSE | |
| ) | |
| )); | |
| $result = $client->validateTemplate(array( | |
| 'TemplateBody' => file_get_contents('dev.template'), | |
| )); | |
| var_dump($result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment