aws cloudformation and windows powershell dsc better together

13
AWS CloudFormation and Windows PowerShell DSC - Better Together - Joe Grenier Senior Software Engineer BlueMetal Architects [email protected]

Upload: lamcong

Post on 13-Feb-2017

250 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: AWS Cloudformation and Windows PowerShell DSC Better Together

AWS CloudFormation and Windows

PowerShell DSC- Better Together -

Joe GrenierSenior Software Engineer

BlueMetal [email protected]

Page 2: AWS Cloudformation and Windows PowerShell DSC Better Together

BlueMetal at a Glance

6 3 3Service Areas Industry

SpecializationsLocations

Cloud & ServicesOpen Source

Collaboration & SocialData Platforms &

AnalyticsDevices & MobilityStrategy & Design

Health Care Life Sciences

Financial ServicesProfessional Services

BostonNew York Chicago

Page 3: AWS Cloudformation and Windows PowerShell DSC Better Together

What is PowerShell DSC?“Desired State Configuration”Configuration management platform built into Windows

Server 2012 R2 and Windows 8.1 (Windows Management Framework 4.0)

Express the desired state of your systems using declarative language syntax

Compiled into .mof files (Managed Object Format) Standard from Distributed Management Task Force (DMTF)

DSC uses “Resources” to put a node into the desired state Resources are PowerShell script modules Built into DSC Microsoft releases new resources in out-of-band “waves” PowerShell DSC community

Page 4: AWS Cloudformation and Windows PowerShell DSC Better Together

How Does Deployment Work With DSC?

Page 5: AWS Cloudformation and Windows PowerShell DSC Better Together

Calls

MOF onTarget Node

DSC Resourcesspecialized

Windows PowerShell modules

Push

ed

Compiled

Push ModeConfiguration Script

MyConfig.ps1

MOFSERVER2.mof

Authoring Deployment

Page 6: AWS Cloudformation and Windows PowerShell DSC Better Together

Config script onTarget Node

DSC Resourcesspecialized

Windows PowerShell modules

Pushed

Or…Configuration Script

MyConfig.ps1

MOFSERVER2.mof

Authoring Deployment

Compiled

Calls

Page 7: AWS Cloudformation and Windows PowerShell DSC Better Together

Calls

Target Node

DSC Resourcesspecialized

Windows PowerShell modules

Compiled

Pull ModeConfiguration Script

MyConfig.ps1

MOFSERVER2.mof

Authoring Deployment

PullServer

Staging

Poll

MOF

Page 8: AWS Cloudformation and Windows PowerShell DSC Better Together

What About CloudFormation?We’ll use CloudFormation to:

Set up AWS VPC Address range Subnets IGW Route tables

Bootstrap DSC for individual servers Download resource modules Download and run helper scripts (reset Admin p-word,

rename server, unzip DSC resource modules, etc.) Run DSC configuration script

Page 9: AWS Cloudformation and Windows PowerShell DSC Better Together

Example: AWS Quickstart https://s3.amazonaws.com/quickstart-reference/microsoft/powershelldsc/latest/

doc/Windows_PowerShell_DSC_on_AWS.pdf

Page 10: AWS Cloudformation and Windows PowerShell DSC Better Together

Where we end up…

Page 11: AWS Cloudformation and Windows PowerShell DSC Better Together

How we get there: CloudFormation

Page 12: AWS Cloudformation and Windows PowerShell DSC Better Together

How we’ll get there: PowerShell DSC