View Terraform_provisiong_dynamic_multiple_disks_on_VMware.tf
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
# # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# = = = = = = = Variables initialization = = = = = = = | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
variable "example_vm_name" { | |
default = "" | |
} | |
variable "example_template_name" { | |
default = "" | |
} |
View Replicate_target_groups_Lambda.py
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
import boto3 | |
def lambda_handler(event, context): | |
#-------------------- Debug --------------------------- | |
print( 'Hello {}'.format(event)) | |
# -------------- Parameters -------------- | |
loadBalancersList = { | |
"arn:aws:elasticloadbalancing:ap-southeast-1:027065296145:targetgroup/bluegreen-tg/b93ed9788fb7b344": "arn:aws:elasticloadbalancing:ap-southeast-1:027065296145:targetgroup/bluegreen-tg-internal/cb7a4a08b50a099e", |
View AWS_auto_tagging_via_Lambda.py
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
import boto3 | |
def lambda_handler(event, context): | |
#-------------------- Debug --------------------------- | |
#print( 'Hello {}'.format(event)) | |
#print( 'User Name- {}'.format(event['detail']['userIdentity']['principalId'])) | |
#print( 'Instance ID- {}'.format(event['detail']['responseElements']['instancesSet']['items'][0]['instanceId'])) | |
# Variables |