Skip to content

Commit 628d260

Browse files
authored
Merge pull request #7 from xoap-io/dev
feat: adding last changes from dev to master
2 parents 5e6981e + a793bf4 commit 628d260

File tree

125 files changed

+16209
-3269
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+16209
-3269
lines changed

arm/arm-create-vm-scale-set.json

Lines changed: 0 additions & 401 deletions
This file was deleted.

aws-cli/ec2/aws-cli-allocate-elastic-ip.ps1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@
1717
the use and the consequences of the use of this freely available script.
1818
PowerShell is a product of Microsoft Corporation. XOAP is a product of RIS AG. © RIS AG
1919
20-
.COMPONENT
21-
AWS CLI
22-
23-
.LINK
24-
https://github.com/xoap-io/scripted-actions
25-
2620
.PARAMETER AwsInstanceId
2721
Defines the ID of the AWS EC2 instance.
2822
2923
.PARAMETER AwsElasticIpId
3024
Defines the ID of the AWS Elastic IP.
3125
26+
.LINK
27+
https://github.com/xoap-io/scripted-actions
28+
29+
.COMPONENT
30+
AWS CLI
3231
#>
32+
3333
[CmdletBinding()]
3434
param(
3535
[Parameter(Mandatory)]
36-
[string]$AwsInstanceId = "myInstanceId",
36+
[string]$AwsInstanceId,
3737
[Parameter(Mandatory)]
38-
[string]$AwsElasticIpId = "myElasticIpId"
38+
[string]$AwsElasticIpId
3939
)
4040

4141
#Set Error Action to Silently Continue

aws-cli/ec2/aws-cli-create-ec2-instance.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ param(
5555
[Parameter(Mandatory)]
5656
[string]$AwsKeyPairName = "myKeyPairName",
5757
[Parameter(Mandatory)]
58-
[string]$AwsSecurityGroupId = "mySecurityGroupId"
58+
[string]$AwsSecurityGroupId = "mySecurityGroupId",
59+
[Parameter(Mandatory)]
60+
[string]$AwsSubnetId = "mySubnetId"
5961
)
6062

6163
#Set Error Action to Silently Continue
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<#
2+
.SYNOPSIS
3+
This script creates an EC2 instance in AWS.
4+
5+
.DESCRIPTION
6+
This script creates an EC2 instance in AWS. The script uses the following AWS CLI command:
7+
aws ec2 run-instances --image-id $AwsAmiId --count $AwsInstanceCount --instance-type $AwsInstanceType --key-name $AwsKeyPairName --security-group-ids $AwsSecurityGroupId --subnet-id $AwsSubnetId
8+
9+
The script sets the ErrorActionPreference to SilentlyContinue to suppress error messages.
10+
11+
It does not return any output.
12+
13+
.NOTES
14+
This PowerShell script was developed and optimized for the usage with the XOAP Scripted Actions module.
15+
The use of the scripts does not require XOAP, but it will make your life easier.
16+
You are allowed to pull the script from the repository and use it with XOAP or other solutions
17+
The terms of use for the XOAP platform do not apply to this script. In particular, RIS AG assumes no liability for the function,
18+
the use and the consequences of the use of this freely available script.
19+
PowerShell is a product of Microsoft Corporation. XOAP is a product of RIS AG. © RIS AG
20+
21+
.COMPONENT
22+
AWS CLI
23+
24+
.LINK
25+
https://github.com/xoap-io/scripted-actions
26+
27+
.PARAMETER AwsAmiId
28+
Defines the ID of the Amazon Machine Image (AMI).
29+
30+
.PARAMETER AwsInstanceCount
31+
Defines the number of instances to launch.
32+
33+
.PARAMETER AwsInstanceType
34+
Defines the type of instance to launch.
35+
36+
.PARAMETER AwsKeyPairName
37+
Defines the name of the key pair.
38+
39+
.PARAMETER AwsSecurityGroupId
40+
Defines the ID of the security group.
41+
42+
.PARAMETER AwsSubnetId
43+
Defines the ID of the subnet.
44+
45+
#>
46+
[CmdletBinding()]
47+
param(
48+
[Parameter(Mandatory)]
49+
[string]$AwsAmiId = "myAmiId",
50+
[Parameter(Mandatory)]
51+
[int]$AwsInstanceCount = 1,
52+
[Parameter(Mandatory)]
53+
[ValidateSet('t2.micro', 't2.small', 't2.medium', 't2.large', 'm4.large', 'm4.xlarge', 'm4.2xlarge', 'm4.4xlarge', 'm4.10xlarge', 'm4.16xlarge', 'm5.large', 'm5.xlarge', 'm5.2xlarge', 'm5.4xlarge', 'm5.12xlarge', 'm5.24xlarge', 'm5d.large', 'm5d.xlarge', 'm5d.2xlarge', 'm5d.4xlarge', 'm5d.12xlarge', 'm5d.24xlarge', 'c4.large', 'c4.xlarge', 'c4.2xlarge', 'c4.4xlarge', 'c4.8xlarge', 'c5.large', 'c5.xlarge', 'c5.2xlarge', 'c5.4xlarge', 'c5.9xlarge', 'c5.18xlarge', 'c5d.large', 'c5d.xlarge', 'c5d.2xlarge', 'c5d.4xlarge', 'c5d.9xlarge', 'c5d.18xlarge', 'r4.large', 'r4.xlarge', 'r4.2xlarge', 'r4.4xlarge', 'r4.8xlarge', 'r4.16xlarge', 'r5.large', 'r5.xlarge', 'r5.2xlarge', 'r5.4xlarge', 'r5.12xlarge', 'r5.24xlarge', 'r5d.large', 'r5d.xlarge', 'r5d.2xlarge', 'r5d.4xlarge', 'r5d.12xlarge', 'r5d.24xlarge', 'i3.large', 'i3.xlarge', 'i3.2xlarge', 'i3.4xlarge', 'i3.8xlarge', 'i3.16xlarge', 'i3en.large', 'i3en.xlarge', 'i3en.2xlarge', 'i3en.3xlarge')]
54+
[string]$AwsInstanceType,
55+
[Parameter(Mandatory)]
56+
[string]$AwsKeyPairName = "E2EVC-Madrid",
57+
[Parameter(Mandatory)]
58+
[string]$AwsSecurityGroupId = "mySecurityGroupId",
59+
[Parameter(Mandatory)]
60+
[string]$AwsSubnetId = "subnet-030459ac24bf1e8da"
61+
)
62+
63+
#Set Error Action to Silently Continue
64+
$ErrorActionPreference = "Stop"
65+
66+
67+
aws ec2 run-instances `
68+
--image-id $AwsAmiId `
69+
--count $AwsInstanceCount `
70+
--instance-type $AwsInstanceType `
71+
--key-name $AwsKeyPairName `
72+
--security-group-ids $AwsSecurityGroupId `
73+
--subnet-id $AwsSubnetId

aws-cli/storage/aws-cli-create-s3-bucket.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ param(
3737
[string]$AwsBucketName = "myBucketName",
3838
[Parameter(Mandatory)]
3939
[ValidateSet('af-south-1','ap-east-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-north-1','eu-south-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-west-1','us-west-2')]
40-
[string]$AwsBucketRegion = "myBucketRegion"
40+
[string]$AwsBucketRegion = ""
4141
)
4242

4343
#Set Error Action to Silently Continue

aws-cli/workspaces/aws-cli-stop-worksapce.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
[CmdletBinding()]
3232
param(
3333
[Parameter(Mandatory)]
34-
[string]$AzResourceGroupName = "myResourceGroupName"
34+
[string]$AzResourceGroup = "myResourceGroup"
3535
)
3636

3737
#Set Error Action to Silently Continue

aws-cli/workspaces/wip_aws-cli-create-workspace.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
.LINK
2020
https://github.com/xoap-io/scripted-actions
2121
22-
.PARAMETER AzResourceGroupName
22+
.PARAMETER AzResourceGroup
2323
Defines the name of the Azure Resource Group.
2424
2525
#>
2626
[CmdletBinding()]
2727
param(
2828
[Parameter(Mandatory)]
29-
[string]$AzResourceGroupName = 'myResourceGroup'
29+
[string]$AzResourceGroup = 'myResourceGroup'
3030
)
3131

3232
#Set Error Action to Silently Continue

aws-cli/workspaces/wip_aws-cli-modify-workspace-properties.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
.LINK
2020
https://github.com/xoap-io/scripted-actions
2121
22-
.PARAMETER AzResourceGroupName
22+
.PARAMETER AzResourceGroup
2323
Defines the name of the Azure Resource Group.
2424
2525
#>
2626
[CmdletBinding()]
2727
param(
2828
[Parameter(Mandatory)]
29-
[string]$AzResourceGroupName
29+
[string]$AzResourceGroup
3030
)
3131

3232
#Set Error Action to Silently Continue

aws-cli/xoap/aws-cli-register-node.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ param(
5858
$ErrorActionPreference = "Stop"
5959

6060
Send-SSMCommand `
61-
-InstanceIds @($AwsInstanceId) `
62-
-DocumentName $AwsSsmDocumentName `
63-
-Comment $AwsSsmDocumentComment `
64-
-Parameter @{'commands'=@('"Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://api.dev.xoap.io/dsc/Policy/$XOAPWorkspaceId/Download/$XOAPGroupName'))"')}
61+
--instance-ids @($AwsInstanceId) `
62+
--document-name $AwsSsmDocumentName `
63+
--comment $AwsSsmDocumentComment `
64+
--parameters @{'commands'=@('"Invoke-Expression ((New-Object System.Net.WebClient).DownloadString(\"https://api.dev.xoap.io/dsc/Policy/$XOAPWorkspaceId/Download/$XOAPGroupName\"))"')}

aws-ps/connect/wip_set-awscredential.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
.LINK
2020
https://github.com/xoap-io/scripted-actions
2121
22-
.PARAMETER AzResourceGroupName
22+
.PARAMETER AzResourceGroup
2323
Defines the name of the Azure Resource Group.
2424
2525
#>
2626
[CmdletBinding()]
2727
param(
2828
[Parameter(Mandatory)]
29-
[string]$AzResourceGroupName
29+
[string]$AzResourceGroup
3030
)
3131

3232
#Set Error Action to Silently Continue
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<#
2+
.SYNOPSIS
3+
This script creates an EC2 instance in AWS.
4+
5+
.DESCRIPTION
6+
This script creates an EC2 instance in AWS. The script uses the following AWS CLI command:
7+
aws ec2 run-instances --image-id $AwsAmiId --count $AwsInstanceCount --instance-type $AwsInstanceType --key-name $AwsKeyPairName --security-group-ids $AwsSecurityGroupId --subnet-id $AwsSubnetId
8+
9+
The script sets the ErrorActionPreference to SilentlyContinue to suppress error messages.
10+
11+
It does not return any output.
12+
13+
.NOTES
14+
This PowerShell script was developed and optimized for the usage with the XOAP Scripted Actions module.
15+
The use of the scripts does not require XOAP, but it will make your life easier.
16+
You are allowed to pull the script from the repository and use it with XOAP or other solutions
17+
The terms of use for the XOAP platform do not apply to this script. In particular, RIS AG assumes no liability for the function,
18+
the use and the consequences of the use of this freely available script.
19+
PowerShell is a product of Microsoft Corporation. XOAP is a product of RIS AG. © RIS AG
20+
21+
.COMPONENT
22+
AWS CLI
23+
24+
.LINK
25+
https://github.com/xoap-io/scripted-actions
26+
27+
.PARAMETER AwsAmiId
28+
Defines the ID of the Amazon Machine Image (AMI).
29+
30+
.PARAMETER AwsInstanceCount
31+
Defines the number of instances to launch.
32+
33+
.PARAMETER AwsInstanceType
34+
Defines the type of instance to launch.
35+
36+
.PARAMETER AwsKeyPairName
37+
Defines the name of the key pair.
38+
39+
.PARAMETER AwsSecurityGroupId
40+
Defines the ID of the security group.
41+
42+
.PARAMETER AwsSubnetId
43+
Defines the ID of the subnet.
44+
45+
#>
46+
[CmdletBinding()]
47+
param(
48+
[Parameter(Mandatory)]
49+
[string]$AwsAmiId = "myAmiId",
50+
[Parameter(Mandatory)]
51+
[int]$AwsInstanceCount = 1,
52+
[Parameter(Mandatory)]
53+
[ValidateSet('t2.micro', 't2.small', 't2.medium', 't2.large', 'm4.large', 'm4.xlarge', 'm4.2xlarge', 'm4.4xlarge', 'm4.10xlarge', 'm4.16xlarge', 'm5.large', 'm5.xlarge', 'm5.2xlarge', 'm5.4xlarge', 'm5.12xlarge', 'm5.24xlarge', 'm5d.large', 'm5d.xlarge', 'm5d.2xlarge', 'm5d.4xlarge', 'm5d.12xlarge', 'm5d.24xlarge', 'c4.large', 'c4.xlarge', 'c4.2xlarge', 'c4.4xlarge', 'c4.8xlarge', 'c5.large', 'c5.xlarge', 'c5.2xlarge', 'c5.4xlarge', 'c5.9xlarge', 'c5.18xlarge', 'c5d.large', 'c5d.xlarge', 'c5d.2xlarge', 'c5d.4xlarge', 'c5d.9xlarge', 'c5d.18xlarge', 'r4.large', 'r4.xlarge', 'r4.2xlarge', 'r4.4xlarge', 'r4.8xlarge', 'r4.16xlarge', 'r5.large', 'r5.xlarge', 'r5.2xlarge', 'r5.4xlarge', 'r5.12xlarge', 'r5.24xlarge', 'r5d.large', 'r5d.xlarge', 'r5d.2xlarge', 'r5d.4xlarge', 'r5d.12xlarge', 'r5d.24xlarge', 'i3.large', 'i3.xlarge', 'i3.2xlarge', 'i3.4xlarge', 'i3.8xlarge', 'i3.16xlarge', 'i3en.large', 'i3en.xlarge', 'i3en.2xlarge', 'i3en.3xlarge')]
54+
[string]$AwsInstanceType,
55+
[Parameter(Mandatory)]
56+
[string]$AwsKeyPairName = "myKeyPairName",
57+
[Parameter(Mandatory)]
58+
[string]$AwsSecurityGroupId = "mySecurityGroupId",
59+
[Parameter(Mandatory)]
60+
[string]$AwsSubnetId = "mySubnetId"
61+
)
62+
63+
New-EC2Instance -ImageId $AwsAmiId `
64+
-MinCount $AwsInstanceCount `
65+
-MaxCount $AwsInstanceCount `
66+
-InstanceType $AwsInstanceType `
67+
-KeyName $AwsKeyPairName `
68+
-SecurityGroup $AwsSecurityGroupId `
69+
-SubnetId $AwsSubnetId

azure-cli/arm/az-cli-deploy-arm.ps1

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)