Cordon all nodes.
for i in $(kubectl get nodes | grep ip |awk '{print $1}'); do kubectl cordon $i; done
source_info = {"owner":"spensireli","repository":"ssm-test","path":"ssm-test","tokenInfo":"{{ssm-secure:git-token}}", "getOptions":"branch:main"} | |
json_encoded_source_info = json.dumps(source_info) | |
try: | |
send_command = ssm_client.send_command( | |
InstanceIds=[resource_id], | |
DocumentName="AWS-ApplyAnsiblePlaybooks", | |
Parameters={"SourceType": ["GitHub"], "SourceInfo": [json_encoded_source_info], "PlaybookFile": ["someteam.yml"], "InstallDependencies": ["True"]} | |
) |
Cordon all nodes.
for i in $(kubectl get nodes | grep ip |awk '{print $1}'); do kubectl cordon $i; done
// Possible since https://github.com/aws/aws-cdk/pull/17144 | |
class VpcProduct extends servicecatalog.ProductStack { | |
vpc: aws_ec2.Vpc; | |
constructor(scope: Construct, id: string) { | |
super(scope, id); | |
this.vpc = new aws_ec2.Vpc(this, 'Vpc', { |
This guide will enable systemd
to run as normal under WSL 2. This will enable services like microk8s
, docker
and many more to just work
during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.
To enable systemd
under WSL we require a tool called systemd-genie
Copy the contents of install-sg.sh
to a new file /tmp/install-sg.sh
:
How to setup Burp Suite inside a docker container. |
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker
now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start
#!/bin/bash | |
set -u | |
set -e | |
set -o pipefail | |
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
cat <<'EOF' > /etc/modprobe.d/blacklist-ipv6.conf |