This file contains 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
var AWS = require('aws-sdk'); | |
AWS.config.update({ region: 'your-region-ie:eu-central-1' }); | |
var mysql = require('mysql'); | |
// Better to use environment variables, but for the example we'll leave it like this | |
var dbClusterIdentifier = 'your-cluster'; | |
var clusterEndpoint = 'your-cluster.cluster-identifier.your-region.rds.amazonaws.com'; | |
var user = 'username'; | |
var password = 'password'; |
This file contains 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:PutObject", | |
"s3:GetObject", | |
"cloudformation:GetTemplate", |
This file contains 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
# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file | |
# except in compliance with the License. A copy of the License is located at | |
# | |
# http://aws.amazon.com/apache2.0/ | |
# | |
# or in the "license" file accompanying this file. This file is distributed on an "AS IS" | |
# BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | |
# License for the specific language governing permissions and limitations under the License. |
This file contains 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
image: python:3.5.1 | |
pipelines: | |
branches: | |
master: | |
- step: | |
script: | |
- apt-get update # required to install zip | |
- apt-get install -y zip # required for packaging up the application | |
- pip install boto3==1.3.0 # required for beanstalk_deploy.py |
This file contains 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
#!/bin/bash | |
# (optional) You might need to set your PATH variable at the top here | |
# depending on how you run this script | |
# PATH=PATH | |
# Hosted Zone ID e.g. BJBK35SKMM9OE | |
ZONEID="ZONEID" | |
# The CNAME you want to update e.g. hello.example.com |
This file contains 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
--- | |
driver: | |
name: ec2 | |
platforms: | |
- name: windows-2016 | |
driver_plugin: ec2 | |
driver_config: | |
tags: | |
created-by: test-kitchen |
This file contains 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Deny", | |
"Action": "*", | |
"Resource": "*", | |
"Condition": { | |
"NotIpAddress": { | |
"aws:SourceIp": [ |
This file contains 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
--- | |
- iam_role: | |
name: Admin | |
assume_role_policy_document: "{{ lookup('file','trust-okta.json') }}" | |
managed_policy: | |
- arn:aws:iam::aws:policy/AdministratorAccess | |
state: present | |
- iam_role: |
This file contains 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
--- | |
- iam_policy: | |
iam_type: role | |
iam_name: Developer | |
policy_name: DeveloperAccess | |
policy_document: dev/policies/DeveloperAccess.json | |
state: present | |
- iam_policy: |
This file contains 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
main.yml | |
dev/ | |
identity_providers/ | |
main.yml # `iam_saml_federation` module tasks | |
idp_metadata.xml # idp metadata document | |
groups/ | |
main.yml # `iam_group` module tasks | |
users/ | |
main.yml # `iam_user` module tasks | |
roles/ |
OlderNewer