https://docs.aws.amazon.com/lambda/latest/dg/images-create.html
FROM public.ecr.aws/lambda/python:3.8
| # This is a workflow created to run based on a commit made by AWS Proton | |
| # It only works if there is only one resource modified as part of the commit. | |
| name: 'proton-run' | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened |
| import jenkins.model.* | |
| import hudson.security.* | |
| import hudson.scm.* | |
| import com.cloudbees.plugins.credentials.* | |
| import hudson.plugins.active_directory.* | |
| class JenkinsAuth { | |
| def instance = Jenkins.getInstance() | |
| def sec_realm, auth, ad_realm | |
| def user, email, password, domain, site, bind_name, bind_password, ad_server |
| #!/usr/bin/env bash | |
| set -eu | |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| source $DIR/services_eni_route53.sh | |
| getjson && getiplist && formatiplist && route53set |
| #!/usr/bin/env bash | |
| set -eux | |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| zone=${1} | |
| stack_name=${2} | |
| securitygroup=${3:-null} | |
| service_name=${4} | |
| iplist=() |
| #!/usr/bin/env python | |
| ''' | |
| This is a high level basic example of roles | |
| ''' | |
| from fabric.api import * | |
| @task | |
| def load_hosts(region='region'): |
| #!/usr/bin/env python | |
| import boto.iam as a | |
| import boto3 | |
| class UserInfo(object): | |
| def __init__(self, region = 'us-east-1'): | |
| self.region = region | |
| self.user_map = {} |