aws ecs help
echo $AWS_DEFAULT_PROFILE aws configure --profile andrew aws ec2 describe-instance-status --profile andrew --instance-ids i-81c24938
| The MIT License (MIT) | |
| Copyright (c) 2018 Pat Allan | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| #!/usr/bin/env bash | |
| set -o errexit | |
| set -o nounset | |
| set -o pipefail | |
| IAM_GROUP=${1:-admins} | |
| EKS_ROLE_ARN=${2:-arn:aws:iam::111122223333:role/eks-node-role} | |
| RBAC_GROUP=${3:-system:masters} |
| pipeline { | |
| agent any | |
| stages { | |
| stage('Checkout Source') { | |
| steps { | |
| git url:'https://github.com/vamsijakkula/hellowhale.git', branch:'master' | |
| } |
| #!/bin/bash | |
| yum install -y aws-cli | |
| aws s3 cp s3://yours-ecs-config/ecs.config /etc/ecs/ecs.config | |
| echo ECS_CLUSTER= cluster-name-demo >> /etc/ecs/ecs.config |
aws ecs help
echo $AWS_DEFAULT_PROFILE aws configure --profile andrew aws ec2 describe-instance-status --profile andrew --instance-ids i-81c24938
| def evaluate_compliance(event, configuration_item, valid_rule_parameters): | |
| iam = get_client('iam', event) | |
| users = get_all_users(iam) | |
| evaluations = [] | |
| for user in users: | |
| e = build_evaluation(user["UserId"], 'COMPLIANT', event, annotation="testing") | |
| evaluations.append(e) | |
| return evaluations | |