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 json | |
import argparse | |
import uuid | |
import os | |
import boto3 | |
from os import environ as env | |
def update_product_template(bucket, key, bundle_id): |
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 main(): | |
cloudformation = boto3.client('cloudformation') | |
response = cloudformation.delete_stack(StackName='WorkspaceBuilder') | |
if __name__ == "__main__": | |
main() |
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 os import environ as env | |
import boto3 | |
import time | |
import string | |
import json | |
from retry import retry | |
from selenium import webdriver | |
from selenium.common.exceptions import TimeoutException, StaleElementReferenceException | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support.select import Select |
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 pytest | |
import testinfra | |
@pytest.mark.parametrize("name,version", [ | |
("7zip", "18.5.0.20180730"), | |
]) | |
def test_packages(host, name, version): | |
pkg = host.package(name) | |
assert pkg.is_installed |
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
--- | |
- hosts: win | |
roles: | |
- ansible-role-windows-baseline | |
- ansible-role-traders |
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
#!/usr/bin/env python | |
import winrm | |
import argparse | |
import json | |
import string | |
import boto3 | |
ssm = boto3.client('ssm') |
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 | |
import string | |
import json | |
def find_id_of_workspace(): | |
cloudformation = boto3.resource('cloudformation') | |
stack = cloudformation.Stack('WorkspaceBuilder') | |
stack_resource = stack.Resource('workspace1').physical_resource_id | |
return stack_resource |
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: Continuous Delivery CodePipeline that builds and deploys AWS Workspaces Golden Images | |
Parameters: | |
RepoName: | |
Type: String | |
Default: workspaces-image-factory | |
RepoOwner: | |
Type: String | |
Default: verticalrelevance | |
GitHubToken: |
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
--- | |
- name: Include variables | |
include_vars: main.yml | |
- name: Install Docker | |
win_chocolatey: | |
name: docker-cli | |
state: present | |
version: '19.03.3' | |
ignore_checksums: yes |
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
--- | |
- name: Include variables | |
include_vars: main.yml | |
- name: Download Bloomberg Terminal | |
win_get_url: | |
url: https://bdn-ak-ssl.bloomberg.com/software/trv/sotrt05072020.exe | |
dest: 'C:\Scripts\sotrt05072020.exe' | |
- name: Install Bloomberg Terminal |
NewerOlder