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: WorkSpaces Template | |
Metadata: | |
AWS::CloudFormation::Interface: | |
ParameterGroups: | |
- | |
Label: | |
default: "WorkSpace Configuration" | |
Parameters: |
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
Install-WindowsFeature -Name GPMC,RSAT-AD-PowerShell,RSAT-AD-AdminCenter,RSAT-ADDS-Tools,RSAT-DNS-Server |
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: AWS resources required for WorkSpaces service | |
Parameters: | |
ADName: | |
Description: AWS managed Directory Name | |
Type: String | |
Default: "corp.example.com" | |
DirAdmninPass: |
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: Secondary CF Stack with EC2 and Custom Resource | |
#------------------------------------------------------------------------------- | |
Parameters: | |
PrimaryStack: | |
Description: "Please provide a name of the primary stack with Lambda" | |
Type: "String" | |
InstanceType: | |
Description: EC2 instance type | |
Type: String |
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: Primary CF Stack with Lambda and IAM Role for Lambda | |
#------------------------------------------------------------------------------- | |
Resources: | |
AMIInfoFunction: | |
Type: 'AWS::Lambda::Function' | |
Properties: | |
Code: | |
ZipFile: !Sub | | |
import json |
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 troposphere.ec2 as ec2 | |
from troposphere import Ref, Template, Tags, GetAtt | |
from troposphere.ec2 import Route, VPCGatewayAttachment, SubnetRouteTableAssociation, \ | |
Subnet, RouteTable, VPC, SubnetNetworkAclAssociation, EIP, InternetGateway | |
#user input requests | |
input_tag = input('Tag (name tag of each aws resource will include it)(ex.: projectx): ').lower() | |
input_aws_region = input('AWS region (ex.: us-east-1): ') | |
input_vpc_cidr = input('VPC CIDR (ex.: 10.0.0.0/16): ') | |
input_pub_az_amount = int(input('In how many different AZs you want to create PUBLIC subnets? (max. 3): ')) |
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: Windows CloudWatch Diskspace Alarms | |
#------------------------------------------------------------------------------- | |
Parameters: | |
#------------------------------------------------------------------------------- | |
instanceid: | |
Description: "Choose an instance id" | |
Type: AWS::EC2::Instance::Id | |
instancename: |
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: Windows CloudWatch Alarms - CPU Memory Instance and System Status | |
#------------------------------------------------------------------------------ | |
Parameters: | |
#------------------------------------------------------------------------------ | |
instanceid: | |
Description: "Choose an instance id" | |
Type: AWS::EC2::Instance::Id | |
instancename: |
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: Linux CloudWatch Diskspace Alarms | |
#------------------------------------------------------------------------------ | |
Parameters: | |
#------------------------------------------------------------------------------ | |
instanceid: | |
Description: "Choose an instance id" | |
Type: AWS::EC2::Instance::Id | |
instancename: |
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: Linux CloudWatch Alarms - CPU Memory Instance and System Status | |
#------------------------------------------------------------------------------ | |
Parameters: | |
#------------------------------------------------------------------------------ | |
instanceid: | |
Description: "Choose an instance id" | |
Type: AWS::EC2::Instance::Id | |
instancename: |
NewerOlder