Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PowerShell and AWS

PowerShell and AWS

New to AWS? Do you want to know where you can use your PowerShell expertise when working with the cloud? Come along to this session to see where and how you can leverage your PowerShell skills on AWS. We will cover getting started with the AWS PowerShell modules, demo the use of PowerShell with AWS Systems Manager allowing you to manage cloud resources at scale, secrets and runtime configuration management with Secrets Manager and Parameter Store, and using PowerShell on serverless technologies with AWS Lambda

Martin Beeby

October 01, 2019
Tweet

More Decks by Martin Beeby

Other Decks in Technology

Transcript

  1. © 2019, Amazon Web Services, Inc. or its Affiliates. @

    t h e b e e b s A software developer since I was 16 Developer for 20 years Work at Amazon Web Services MARTIN BEEBY @THEBEEBS THEBEEBS.CO.UK/INCEPTION
  2. © 2019, Amazon Web Services, Inc. or its Affiliates. Session

    topics • Overview of PowerShell at AWS • Finding your way around • PowerShell with AWS Systems Manager • DSC and AWS Systems Manager • Serverless PowerShell
  3. The broadest and deepest platform for today’s builders Technical &

    Business Support AWS Marketplace 7 SERVICES Analytics 11 SERVICES IoT 11 SERVICES Machine Learning 20 SERVICES Core Services 5 SERVICES Management Tools 8 SERVICES DevOps 11 SERVICES Blockchain 2 SERVICES Mobile Services 8 SERVICES App Services 5 SERVICES Infrastructure 7 SERVICES Enterprise Apps 9 SERVICES Migration 7 SERVICES Security & Compliance 19 SERVICES 9 SERVICES
  4. © 2019, Amazon Web Services, Inc. or its Affiliates. AWS

    Tools for Windows PowerShell • Module named AWSPowerShell • V1.0.0 released December 5, 2012 • PowerShell Gallery support announced May 14, 2015 • Module pre-installed on Amazon-provided Windows images in EC2 v1.0: approx. 550 cmdlets across 20 or so services v3.3.498.0 released April 24, 2019 5,510 cmdlets across 160+ services
  5. © 2019, Amazon Web Services, Inc. or its Affiliates. AWS

    Tools for PowerShell Core (v6) • Module named AWSPowerShell.NetCore • Announced August 18, 2016 • Launch partner with Microsoft J • Released to PowerShell Gallery August 23, 2016 (v3.2.7.0) • 100% compatibility with AWS Tools for Windows PowerShell • Now targets PowerShell Standard
  6. © 2019, Amazon Web Services, Inc. or its Affiliates. Release

    progression 0 1000 2000 3000 4000 5000 6000 7000 5/8/2015 6/8/2015 7/8/2015 8/8/2015 9/8/2015 10/8/2015 11/8/2015 12/8/2015 1/8/2016 2/8/2016 3/8/2016 4/8/2016 5/8/2016 6/8/2016 7/8/2016 8/8/2016 9/8/2016 10/8/2016 11/8/2016 12/8/2016 1/8/2017 2/8/2017 3/8/2017 4/8/2017 5/8/2017 6/8/2017 7/8/2017 8/8/2017 9/8/2017 10/8/2017 11/8/2017 12/8/2017 1/8/2018 2/8/2018 3/8/2018 4/8/2018 5/8/2018 6/8/2018 7/8/2018 8/8/2018 9/8/2018 10/8/2018 11/8/2018 12/8/2018 1/8/2019 2/8/2019 3/8/2019 4/8/2019
  7. © 2019, Amazon Web Services, Inc. or its Affiliates. Other

    significant releases • 31 May 2017: updates to some cmdlet and parameter names • Responding to community feedback and latest PowerShell standards • 22 March 2018: Amazon EC2 AMIs with PowerShell Core installed by default on Amazon Linux 2 and Ubuntu • 20 August 2018: PowerShell Core added to CodeBuild .NET Docker images • 11 September 2018: AWS Lambda launches PowerShell Core Language support • 18 September 2018: PowerShell code samples added to .NET Developer Center • 08 August 2019: Preview Release of the new AWS Tools for PowerShell
  8. © 2019, Amazon Web Services, Inc. or its Affiliates. What’s

    in the modules? • Almost all cmdlets map 1:1 to AWS service APIs • Some cmdlets wrap multiple APIs (eg Write-S3Object) • Cmdlets sit atop the public AWS SDK for .NET If you can code something in an SDK, you can script it in PowerShell!
  9. © 2019, Amazon Web Services, Inc. or its Affiliates. What

    is AWS Systems Manager? • “Single pane of glass” to give you visibility and control of your infrastructure • View operational data from multiple services • Automate operational tasks across your resources • Supports Amazon EC2 and on-premises systems • Simplified resource and application management • Easy to operate and manage your infrastructure securely at scale
  10. © 2019, Amazon Web Services, Inc. or its Affiliates. Where

    can I use PowerShell with Systems Manager? • Run Command – October 2015: automate common administrative tasks and ad-hoc configuration at scale • State Manager – November 2016: automate configurations to keep systems in a defined state • Session Manager – September 2018: secure, interactive browser- based or AWS CLI shell sessions without opening inbound ports • Compliance / Inventory – November 2016: custom scripts to publish your own compliance or inventory data
  11. © 2019, Amazon Web Services, Inc. or its Affiliates. PowerShell

    DSC support in AWS Systems Manager • Launched 15 November 2018 • Public Systems Manager Document: AWS-ApplyDSCMofs • Execute via Run Command or State Manager • Integrates with AWS: • AWS Systems Manager - Parameter Store • AWS Systems Manager - Compliance • AWS Secrets Manager • Amazon S3
  12. © 2019, Amazon Web Services, Inc. or its Affiliates. AWS

    Lambda meets PowerShell • PowerShell Core Language Support launched 11 September 2018 • Open Sourced: https://github.com/aws/aws-lambda-dotnet • New Module: AWSLambdaPSCore • Also contains ‘new project’ blueprints • Uses the AWS Lambda .NET Core 2.1 runtime
  13. © 2019, Amazon Web Services, Inc. or its Affiliates. Resources

    GitHub links: https://github.com/aws/aws-tools-for-powershell https://github.com/aws/aws-lambda-dotnet PowerShell Gallery links: https://www.powershellgallery.com/packages/AWSPowerShell/ https://www.powershellgallery.com/packages/AWSPowerShell.NetCore/ AWS Developer Blog: https://aws.amazon.com/blogs/developer/
  14. © 2019, Amazon Web Services, Inc. or its Affiliates. ©

    2019, Amazon Web Services, Inc. or its Affiliates. Thank you!