Because AWS Lambda runs in a Amazon Linux environment, to run external modules you must
sudo yum update -y
#!/usr/bin/env bash | |
#bash that creates an AWS Stack based on a Template. | |
#If the stack exists, it will updated it. | |
#It recevied as parameter the name of the stack. | |
#Requires to be configured the AWS credentials and be installed AWS CLI | |
stackName=$1 | |
function updateStack(){ |
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Stack to create all that is needed for Project with DyanamoDb, ApiGateway and an Event Rule trigger (Crhon to launch a lambda function) stack. The lambda is created with the import export tool using a swager definition", | |
"Parameters": { | |
"DynamoDbTableName": { | |
"Default": "@DynamoDbTableName@", | |
"Type": "String" | |
}, | |
"DynamoDbIdName":{ | |
"Default": "id", |
import com.amazonaws.auth.SystemPropertiesCredentialsProvider | |
import com.amazonaws.services.s3.model.ObjectMetadata | |
import com.amazonaws.services.s3.model.ObjectTagging | |
import com.amazonaws.services.s3.model.Tag | |
import com.amazonaws.services.s3.transfer.MultipleFileUpload | |
import com.amazonaws.services.s3.transfer.ObjectMetadataProvider | |
import com.amazonaws.services.s3.transfer.ObjectTaggingProvider | |
import com.amazonaws.services.s3.transfer.TransferManagerWithTagging | |
import com.amazonaws.services.s3.transfer.TransferProgress |
mkdir Tower | |
cd Tower/ | |
git clone https://github.com/ansible/awx.git | |
cd awx | |
cd installer/ | |
#vi inventory | |
-# openshift_host=127.0.0.1:8443 | |
-# awx_openshift_project=awx | |
-# openshift_user=developer |
This documentation aims at being a quick-straight-to-the-point-hands-on AWS resources manipulation with [boto3][0].
First of all, you'll need to install [boto3][0]. Installing it along with [awscli][1] is probably a good idea as
pragma solidity ^0.4.16; | |
contract owned { | |
address public owner; | |
function owned() public { | |
owner = msg.sender; | |
} | |
modifier onlyOwner { |
--- | |
## Example of use of filter regex_search | |
- hosts: localhost | |
remote_user: root | |
tasks: | |
- name: set regex | |
set_fact: | |
az_rg_regex_pattern: "(?<=resourceGroups\/)(.*?)(?=\/)" |
--- | |
- name: Patch server | |
hosts: all | |
become: true | |
vars: | |
packages_to_update: | |
- package1 | |
- package2 | |
- package3 | |
lv_max_size: 3 |