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
{ | |
"uuid": "fb2367f4-5a03-43f3-8ab7-f9581ea04ad5", | |
"lastMigration": 32, | |
"name": "Paginate", | |
"endpointPrefix": "", | |
"latency": 0, | |
"port": 3002, | |
"hostname": "", | |
"folders": [], | |
"routes": [ |
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
# source https://github.com/remilapeyre/vault-acme | |
wget https://github.com/remilapeyre/vault-acme/releases/download/v0.0.8/linux_amd64.zip -O /tmp/acme.zip | |
unzip /tmp/acme.zip -d /tmp/ | |
mv /tmp/acme-plugin /opt/vault/plugins/ | |
chmod vault:vault /opt/vault/plugins/acme-plugin | |
sudo setcap cap_ipc_lock=+ep /opt/vault/plugins/acme-plugin | |
vault write sys/plugins/catalog/secret/acme sha_256=29b5d33532cd55fddd5de199c4717683ccc3957bf8d8fe645974be984c1abd5a command=acme-plugin | |
vault secrets enable -path acme -plugin-name acme plugin |
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
from datetime import datetime, timedelta, time | |
import boto3 | |
# last update 2022/02/15 | |
TIME = { | |
"eu-central-1": { | |
"description": "Europe(Frankfurt)", | |
"permitted_ec2_time": "8-19", | |
"utc_offset": "+1" |
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
</dev/tcp/10.228.196.124/22 && echo "Port is open" || echo "Port is closed" |
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
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: Create AWS Backup Vault, Backup Plan and Backup Selection | |
Parameters: | |
# Backup | |
CreateNewBackupVault: | |
Type: String | |
AllowedValues: | |
- true | |
- false |
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
--- | |
###Cloudwatch role should be attached to the ec2 instance### | |
- hosts: dd ###servers on which you need to run the cw_agent | |
become: yes | |
remote_user: root | |
gather_facts: true | |
tasks: | |
- name: Check if Cloudwatch Agent is Installed Already | |
shell: /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -m ec2 -a status | |
register: init_status_result |
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 | |
########################################################################################## | |
# AWS VM Import Instance Checker 1.2 # | |
# # | |
# The script has been implemented to simplify the VM Import process of the virtual # | |
# environment in AWS. # | |
# # | |
# The script checks that the requirements to import a VM in AWS are verified. # | |
# Please make a backup of the VM before to proceed. # |
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
# source https://github.com/radekg/terraform-provisioner-ansible | |
image: | |
name: rflume/terraform-aws-ansible:latest | |
stages: | |
# 'global' stages | |
- validate global | |
- plan global | |
- apply global | |
# Dev env stages |
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
<powershell> | |
$password = (Get-SSMParameter -Name /ds/svc_password -WithDecryption $true).Value | ConvertTo-SecureString -asPlainText -Force | |
$username = (Get-SSMParameter -Name /ds/svc_user -WithDecryption $true).Value | |
$credential = New-Object System.Management.Automation.PSCredential($username,$password) | |
$instanceID = invoke-restmethod -uri http://169.254.169.254/latest/meta-data/instance-id | |
Add-Computer -domainname example.com -ComputerName $instanceID -Credential $credential -Passthru -Verbose -Force -Restart | |
</powershell> |
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
AWSTemplateFormatVersion: '2010-09-09' | |
Description: Automatically validate ACM requests from this account | |
ACMApproverRole: | |
Type: "AWS::IAM::Role" | |
Properties: | |
AssumeRolePolicyDocument: | |
Version: "2012-10-17" | |
Statement: | |
- Effect: Allow |
NewerOlder