AWS Resource Management with Power Shell and AWS

  • Slides: 17
Download presentation
AWS Resource Management with Power. Shell and AWS Systems Manager Steve Roberts AM Grobelny

AWS Resource Management with Power. Shell and AWS Systems Manager Steve Roberts AM Grobelny Senior Software Developer Amazon Web Services Senior Tech Evangelist Amazon Web Services #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

In this session… #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

In this session… #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

AWS Tools for Power. Shell • AWSPower. Shell module • Supports Power. Shell v

AWS Tools for Power. Shell • AWSPower. Shell module • Supports Power. Shell v 2 -v 5 on Windows • AWSPower. Shell. Net. Core module • Supports Power. Shell v 6 on Windows, Mac. OS and Linux • Both support over 4400+ APIs across 125 AWS services • Both available on the Power. Shell Gallery • NEW! Power. Shell module for use with AWS Lambda: AWSLambda. PSCore #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

Demo Getting Started with the AWS Tools for Power. Shell #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

Demo Getting Started with the AWS Tools for Power. Shell #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

AWS Systems Manager is an operational control tool built to help you manage infrastructure

AWS Systems Manager is an operational control tool built to help you manage infrastructure both in AWS and on premises. Tools target work around: • Automation • State management • Security and auditing • Data visualization #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

AWS Systems Manager: Parameter Store • Allows you to collect and store configuration in

AWS Systems Manager: Parameter Store • Allows you to collect and store configuration in one secure location • Includes some configuration management tools like tagging and hierarchies. • Integrated with AWS KMS for automatic encryption of configuration data at rest • Quickly discover latest Windows image (AMI) ID #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

Demo Using Parameter Store from Power. Shell #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

Demo Using Parameter Store from Power. Shell #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

AWS Systems Manager: Run Command • Replaces the need for SSH, bastion hosts, or

AWS Systems Manager: Run Command • Replaces the need for SSH, bastion hosts, or remote Power. Shell • All actions recorded by AWS Cloud. Trail • Automate and execute Bash and Power. Shell scripts across your fleet of servers #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

Demo What is a Run Command document? #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

Demo What is a Run Command document? #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

AWS Systems Manager: State Manager • Provides tools to maintain configuration consistency across your

AWS Systems Manager: State Manager • Provides tools to maintain configuration consistency across your fleet of servers • Supports using Ansible playbooks directly from Git. Hub or Amazon S 3, scripts, Power. Shell modules, or configuration through the AWS Console • You can set the frequency and time at which State Manager will apply your configurations #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

AWS Systems Manager: Automation • Create documents defining a collection of operation or management

AWS Systems Manager: Automation • Create documents defining a collection of operation or management tasks to apply to your fleet of servers • Automate execution of these tasks based on Amazon Cloud. Watch events or through the AWS Console, CLI, SDK, or Tools for Power. Shell • Optionally track and require approval for each step of your automation #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

What are we going to build and manage today? #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

What are we going to build and manage today? #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

Demo Our running system #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

Demo Our running system #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

How it was built • • Parameter Store to get the ID of the

How it was built • • Parameter Store to get the ID of the latest EC 2 Windows image (AMI) to start from Collection of Automation documents perform the configuration Workflow triggered from Lambda function written in Power. Shell State Manager used to control configuration drift over time Let’s get started! #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

How else could we have built the system? #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

How else could we have built the system? #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

Summary. NET on AWS: https: //aws. amazon. com/net Power. Shell Gallery https: //www. powershellgallery.

Summary. NET on AWS: https: //aws. amazon. com/net Power. Shell Gallery https: //www. powershellgallery. com/packages/AWSPower. Shell/ https: //www. powershellgallery. com/packages/AWSPower. Shell. Net. Core/ AWS Systems Manager Documents on Git. Hub https: //github. com/awslabs/aws-systems-manager/tree/master/Documents/ Blog: https: //aws. amazon. com/blogs/developer/category/programing-language/dot-net/ Follow us on Twitter! @awscloud @awsfornet @amsxbg @bellevuesteve #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

Thank You! #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM

Thank You! #ITDEVCONNECTIONS | ITDEVCONNECTIONS. COM