0% нашли этот документ полезным (0 голосов)
37 просмотров37 страниц

Pro PowerShell For Amazon Web Services Brian Beach 2024 Scribd Download

Документ представляет собой второе издание книги 'Pro PowerShell for Amazon Web Services', написанной Брайаном Бичем и другими авторами. Он охватывает темы, связанные с архитектурой AWS, управлением экземплярами, виртуальными частными облаками и другими аспектами работы с AWS с использованием PowerShell. Книга также включает информацию о мониторинге, управлении доступом и работе с реляционными базами данных.

Загружено:

buddabakstxj
Авторское право
© © All Rights Reserved
Мы серьезно относимся к защите прав на контент. Если вы подозреваете, что это ваш контент, заявите об этом здесь.
Доступные форматы
Скачать в формате PDF, TXT или читать онлайн в Scribd
0% нашли этот документ полезным (0 голосов)
37 просмотров37 страниц

Pro PowerShell For Amazon Web Services Brian Beach 2024 Scribd Download

Документ представляет собой второе издание книги 'Pro PowerShell for Amazon Web Services', написанной Брайаном Бичем и другими авторами. Он охватывает темы, связанные с архитектурой AWS, управлением экземплярами, виртуальными частными облаками и другими аспектами работы с AWS с использованием PowerShell. Книга также включает информацию о мониторинге, управлении доступом и работе с реляционными базами данных.

Загружено:

buddabakstxj
Авторское право
© © All Rights Reserved
Мы серьезно относимся к защите прав на контент. Если вы подозреваете, что это ваш контент, заявите об этом здесь.
Доступные форматы
Скачать в формате PDF, TXT или читать онлайн в Scribd
Вы находитесь на странице: 1/ 37

Get the full ebook with Bonus Features for a Better Reading Experience on ebookmeta.

com

Pro PowerShell for Amazon Web Services Brian Beach

https://ebookmeta.com/product/pro-powershell-for-amazon-web-
services-brian-beach/

OR CLICK HERE

DOWLOAD NOW

Download more ebook instantly today at https://ebookmeta.com


Pro PowerShell
for Amazon
Web Services
Second Edition

Brian Beach
Steven Armentrout
Rodney Bozo
Emmanuel Tsouris
Pro PowerShell for
Amazon Web Services
Second Edition

Brian Beach
Steven Armentrout
Rodney Bozo
Emmanuel Tsouris
Pro PowerShell for Amazon Web Services
Brian Beach Steven Armentrout
Raleigh, NC, USA Mountlake Terrace, WA, USA
Rodney Bozo Emmanuel Tsouris
Sterling, VA, USA North Bend, WA, USA

ISBN-13 (pbk): 978-1-4842-4849-2 ISBN-13 (electronic): 978-1-4842-4850-8


https://doi.org/10.1007/978-1-4842-4850-8

Copyright © 2019 by Brian Beach, Steven Armentrout, Rodney Bozo, Emmanuel Tsouris
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the
material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation,
broadcasting, reproduction on microfilms or in any other physical way, and transmission or information
storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now
known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with
every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an
editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the
trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not
identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to
proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication,
neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or
omissions that may be made. The publisher makes no warranty, express or implied, with respect to the
material contained herein.
Managing Director, Apress Media LLC: Welmoed Spahr
Acquisitions Editor: Susan McDermott
Development Editor: Laura Berendson
Coordinating Editor: Rita Fernando
Cover designed by eStudioCalamar
Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street,
6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-
sbm.com, or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member
(owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a
Delaware corporation.
For information on translations, please e-mail [email protected], or visit http://www.apress.com/
rights-permissions.
Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook versions and
licenses are also available for most titles. For more information, reference our Print and eBook Bulk Sales
web page at http://www.apress.com/bulk-sales.
Any source code or other supplementary material referenced by the author in this book is available to
readers on GitHub via the book’s product page, located at www.apress.com/9781484248492. For more
detailed information, please visit http://www.apress.com/source-code.
Printed on acid-free paper
Table of Contents
About the Authors����������������������������������������������������������������������������������������������������xv

About the Technical Reviewers�����������������������������������������������������������������������������xvii

Acknowledgments��������������������������������������������������������������������������������������������������xix

Introduction������������������������������������������������������������������������������������������������������������xxi

Chapter 1: AWS Architecture Overview�������������������������������������������������������������������� 1


What Is Cloud Computing?������������������������������������������������������������������������������������������������������������ 1
Regions����������������������������������������������������������������������������������������������������������������������������������������� 2
Availability Zones�������������������������������������������������������������������������������������������������������������������������� 3
Services���������������������������������������������������������������������������������������������������������������������������������������� 4
Management��������������������������������������������������������������������������������������������������������������������������� 4
Storage������������������������������������������������������������������������������������������������������������������������������������ 5
Network����������������������������������������������������������������������������������������������������������������������������������� 6
Compute���������������������������������������������������������������������������������������������������������������������������������� 6
Monitoring������������������������������������������������������������������������������������������������������������������������������� 7
Misc.���������������������������������������������������������������������������������������������������������������������������������������� 7
Summary�������������������������������������������������������������������������������������������������������������������������������������� 8

Chapter 2: Getting Started���������������������������������������������������������������������������������������� 9


Creating an AWS Account�������������������������������������������������������������������������������������������������������������� 9
Creating an IAM User Account���������������������������������������������������������������������������������������������������� 10
Logging in As an IAM User���������������������������������������������������������������������������������������������������������� 13
Configuring PowerShell�������������������������������������������������������������������������������������������������������������� 14
Specifying Credentials and Region��������������������������������������������������������������������������������������������� 15
Setting Defaults�������������������������������������������������������������������������������������������������������������������������� 17

iii
Table of Contents

Persisting Defaults���������������������������������������������������������������������������������������������������������������������� 18
Using Stored Credentials������������������������������������������������������������������������������������������������������������ 19
Using Key Pairs��������������������������������������������������������������������������������������������������������������������������� 20
Using IAM Roles�������������������������������������������������������������������������������������������������������������������������� 21
Summary������������������������������������������������������������������������������������������������������������������������������������ 24

Chapter 3: Basic Instance Management����������������������������������������������������������������� 25


Creating Instances���������������������������������������������������������������������������������������������������������������������� 25
Launching an Instance with the Web Console����������������������������������������������������������������������� 25
Launching an Instance with PowerShell������������������������������������������������������������������������������� 30
Checking the Instance Console Screenshot�������������������������������������������������������������������������������� 33
Checking the Instance Console System Log������������������������������������������������������������������������������� 34
Connecting to an Instance���������������������������������������������������������������������������������������������������������� 36
Managing the Instance Life Cycle����������������������������������������������������������������������������������������������� 39
Listing Instances and Metadata�������������������������������������������������������������������������������������������������� 41
Using the Metadata URL�������������������������������������������������������������������������������������������������������� 44
Using User Data�������������������������������������������������������������������������������������������������������������������������� 46
Working with Tags����������������������������������������������������������������������������������������������������������������������� 49
Working with Filters�������������������������������������������������������������������������������������������������������������������� 52
Summary������������������������������������������������������������������������������������������������������������������������������������ 58

Chapter 4: Elastic Block Storage���������������������������������������������������������������������������� 59


Managing Volumes at Launch����������������������������������������������������������������������������������������������������� 60
Encrypting Volumes at Launch���������������������������������������������������������������������������������������������������� 66
Adding a Volume to a Running Instance������������������������������������������������������������������������������������� 68
Managing Quality of Service������������������������������������������������������������������������������������������������������� 70
Working with Snapshots������������������������������������������������������������������������������������������������������������� 72
Managing Public Snapshots�������������������������������������������������������������������������������������������������������� 74
Summary������������������������������������������������������������������������������������������������������������������������������������ 83

iv
Table of Contents

Chapter 5: Virtual Private Cloud����������������������������������������������������������������������������� 85


Creating a VPC���������������������������������������������������������������������������������������������������������������������������� 86
Creating a Subnet����������������������������������������������������������������������������������������������������������������������� 88
Creating an Internet Gateway����������������������������������������������������������������������������������������������������� 90
Managing Route Tables��������������������������������������������������������������������������������������������������������������� 91
Managing Network ACLs������������������������������������������������������������������������������������������������������������� 95
Securing the Public Subnet��������������������������������������������������������������������������������������������������� 97
Securing the Private Subnet�������������������������������������������������������������������������������������������������� 99
Managing DHCP������������������������������������������������������������������������������������������������������������������������ 101
VPC Peering������������������������������������������������������������������������������������������������������������������������������ 104
Summary���������������������������������������������������������������������������������������������������������������������������������� 115

Chapter 6: Advanced Instance Management�������������������������������������������������������� 117


Managing Security Groups�������������������������������������������������������������������������������������������������������� 117
Displaying Security Groups������������������������������������������������������������������������������������������������� 119
Adding and Removing Rules������������������������������������������������������������������������������������������������ 121
Launching Instances into a VPC������������������������������������������������������������������������������������������������ 125
Subnets and Public IP Addresses���������������������������������������������������������������������������������������������� 128
Managing Elastic IP Addresses������������������������������������������������������������������������������������������������� 129
Managing Private IPs���������������������������������������������������������������������������������������������������������������� 132
Managing Elastic Network Interfaces��������������������������������������������������������������������������������������� 133
Summary���������������������������������������������������������������������������������������������������������������������������������� 155

Chapter 7: Amazon Machine Images�������������������������������������������������������������������� 157


Working with Scripted Builds and Prepared Images����������������������������������������������������������������� 157
Listing AMIs������������������������������������������������������������������������������������������������������������������������������� 158
Limiting the Number of Instance Results���������������������������������������������������������������������������� 159
Finding an Instance by Name���������������������������������������������������������������������������������������������� 160
Locating the Most Common Images������������������������������������������������������������������������������������ 160
Introducing EC2Launch������������������������������������������������������������������������������������������������������������� 161
Preparing an AMI Using EC2LaunchSettings����������������������������������������������������������������������������� 164

v
Table of Contents

Creating an AMI������������������������������������������������������������������������������������������������������������������������� 166


Sharing an AMI�������������������������������������������������������������������������������������������������������������������������� 168
Summary���������������������������������������������������������������������������������������������������������������������������������� 171

Chapter 8: Monitoring and High Availability��������������������������������������������������������� 173


Architecting for High Availability����������������������������������������������������������������������������������������������� 174
Managing Elastic Load Balancers��������������������������������������������������������������������������������������������� 177
Preparing the VPC for an ELB���������������������������������������������������������������������������������������������� 178
Configuring an NLB�������������������������������������������������������������������������������������������������������������� 180
Configuring a Health Check������������������������������������������������������������������������������������������������� 181
Configuring an ELB for HTTPS��������������������������������������������������������������������������������������������� 182
Monitoring with CloudWatch����������������������������������������������������������������������������������������������������� 183
Using Auto Scaling�������������������������������������������������������������������������������������������������������������������� 186
Using Route 53�������������������������������������������������������������������������������������������������������������������������� 191
Summary���������������������������������������������������������������������������������������������������������������������������������� 196

Chapter 9: Identity and Access Management������������������������������������������������������� 199


Managing Users������������������������������������������������������������������������������������������������������������������������ 199
Managing Groups���������������������������������������������������������������������������������������������������������������������� 202
Managing Policies��������������������������������������������������������������������������������������������������������������������� 203
Policy Actions���������������������������������������������������������������������������������������������������������������������� 205
Policy Resources����������������������������������������������������������������������������������������������������������������� 208
Policy Actions���������������������������������������������������������������������������������������������������������������������� 212
Policy Conditions����������������������������������������������������������������������������������������������������������������� 212
Creating Policies with PowerShell�������������������������������������������������������������������������������������������� 213
Managed Policies���������������������������������������������������������������������������������������������������������������������� 214
Managing Roles������������������������������������������������������������������������������������������������������������������������ 217
Auditing IAM Access����������������������������������������������������������������������������������������������������������������� 220
Miscellaneous IAM Commands������������������������������������������������������������������������������������������������� 221
Managing Password Policy�������������������������������������������������������������������������������������������������� 221
Setting the Account Alias����������������������������������������������������������������������������������������������������� 222
Summary���������������������������������������������������������������������������������������������������������������������������������� 235

vi
Table of Contents

Chapter 10: Relational Database Service������������������������������������������������������������� 237


RDS Architecture����������������������������������������������������������������������������������������������������������������������� 237
Creating a VPC��������������������������������������������������������������������������������������������������������������������� 239
Creating a Subnet Group����������������������������������������������������������������������������������������������������� 239
Configuring Security Groups������������������������������������������������������������������������������������������������ 240
Managing RDS Instances���������������������������������������������������������������������������������������������������������� 241
Launching an Instance�������������������������������������������������������������������������������������������������������� 241
Joining a Domain���������������������������������������������������������������������������������������������������������������������� 247
Multi-AZ Instances�������������������������������������������������������������������������������������������������������������������� 249
Modifying an Instance��������������������������������������������������������������������������������������������������������� 251
Deleting an Instance������������������������������������������������������������������������������������������������������������ 253
Configuring a Database Engine������������������������������������������������������������������������������������������������� 253
Modifying Parameters��������������������������������������������������������������������������������������������������������� 253
Modifying Options���������������������������������������������������������������������������������������������������������������� 255
Working with Snapshots����������������������������������������������������������������������������������������������������������� 258
Using Point-in-Time Restores��������������������������������������������������������������������������������������������������� 260
Working with Tags, Events, and Logs���������������������������������������������������������������������������������������� 262
Tags������������������������������������������������������������������������������������������������������������������������������������� 263
Events���������������������������������������������������������������������������������������������������������������������������������� 264
Logs������������������������������������������������������������������������������������������������������������������������������������� 267
Amazon Aurora�������������������������������������������������������������������������������������������������������������������������� 267
Summary���������������������������������������������������������������������������������������������������������������������������������� 274

Chapter 11: Simple Storage Service��������������������������������������������������������������������� 275


Managing Buckets�������������������������������������������������������������������������������������������������������������������� 275
Managing Objects��������������������������������������������������������������������������������������������������������������������� 277
Managing Folders��������������������������������������������������������������������������������������������������������������������� 279
Managing Public Access����������������������������������������������������������������������������������������������������������� 281
Managing Versions�������������������������������������������������������������������������������������������������������������������� 281
Using Life-Cycle Management and Glacier������������������������������������������������������������������������� 284
Cross-Region Replication���������������������������������������������������������������������������������������������������������� 287

vii
Table of Contents

Tagging������������������������������������������������������������������������������������������������������������������������������������� 290
Miscellaneous S3 Options��������������������������������������������������������������������������������������������������������� 291
Pagination���������������������������������������������������������������������������������������������������������������������������� 292
Encryption��������������������������������������������������������������������������������������������������������������������������� 292
Logging�������������������������������������������������������������������������������������������������������������������������������� 292
Content Type������������������������������������������������������������������������������������������������������������������������ 293
Summary���������������������������������������������������������������������������������������������������������������������������������� 299

Chapter 12: AWS Directory Service���������������������������������������������������������������������� 301


Selecting the Right Directory���������������������������������������������������������������������������������������������������� 301
AWS Directory Service for Microsoft Active Directory��������������������������������������������������������� 302
AD Connector����������������������������������������������������������������������������������������������������������������������� 302
Simple AD���������������������������������������������������������������������������������������������������������������������������� 303
Managed Microsoft AD Architecture����������������������������������������������������������������������������������������� 303
Prerequisites����������������������������������������������������������������������������������������������������������������������� 303
Creating a VPC��������������������������������������������������������������������������������������������������������������������� 304
Creating Private Subnets����������������������������������������������������������������������������������������������������� 304
Creating a Managed Microsoft AD Directory����������������������������������������������������������������������� 304
Creating Public Subnet�������������������������������������������������������������������������������������������������������� 306
Creating Internet Gateway��������������������������������������������������������������������������������������������������� 306
Configuring VPC Routing������������������������������������������������������������������������������������������������������ 306
Configuring DNS Hostname Name Resolution��������������������������������������������������������������������� 307
Creating Management Workstation������������������������������������������������������������������������������������� 307
Configuring Management Workstation�������������������������������������������������������������������������������� 308
Joining EC2 Instance to the Domain������������������������������������������������������������������������������������ 309
Install AD Tools�������������������������������������������������������������������������������������������������������������������� 313
Delegation Model����������������������������������������������������������������������������������������������������������������� 315
Add Additional Domain Controller���������������������������������������������������������������������������������������� 316
Create a Snapshot��������������������������������������������������������������������������������������������������������������� 317
Restore a Snapshot������������������������������������������������������������������������������������������������������������� 318
Enable Single Sign-On��������������������������������������������������������������������������������������������������������� 319
Creating an Access URL������������������������������������������������������������������������������������������������������� 319

viii
Table of Contents

Enabling AWS Apps and Services���������������������������������������������������������������������������������������� 320


Enable Multi-Factor Authentication������������������������������������������������������������������������������������� 320
Disable Multi-Factor Authentication������������������������������������������������������������������������������������ 321
Reset Admin Password�������������������������������������������������������������������������������������������������������� 321
Create a Trust Relationship�������������������������������������������������������������������������������������������������� 322
Approve Trust Relationship�������������������������������������������������������������������������������������������������� 322
Remove a Trust Relationship����������������������������������������������������������������������������������������������� 322
Deleting the Managed Microsoft AD Directory�������������������������������������������������������������������� 323
AWS Created Security Group����������������������������������������������������������������������������������������������� 323
AD Connector���������������������������������������������������������������������������������������������������������������������������� 324
AD Connector Prerequisites������������������������������������������������������������������������������������������������� 324
Creating AD Connector�������������������������������������������������������������������������������������������������������� 325
Deleting AD Connector��������������������������������������������������������������������������������������������������������� 326
Simple AD���������������������������������������������������������������������������������������������������������������������������������� 327
Creating Simple AD�������������������������������������������������������������������������������������������������������������� 327
Prerequisites����������������������������������������������������������������������������������������������������������������������� 327
Creating a VPC��������������������������������������������������������������������������������������������������������������������� 327
Creating Private Subnets����������������������������������������������������������������������������������������������������� 328
Creating Public Subnet�������������������������������������������������������������������������������������������������������� 328
Creating Internet Gateway��������������������������������������������������������������������������������������������������� 328
Configuring VPC Routing������������������������������������������������������������������������������������������������������ 329
Configuring DNS Hostname Name Resolution��������������������������������������������������������������������� 329
Creating a Simple AD����������������������������������������������������������������������������������������������������������� 329
Creating Management Workstation������������������������������������������������������������������������������������� 330
Configuring Management Workstation�������������������������������������������������������������������������������� 331
Joining EC2 Instance to the Domain������������������������������������������������������������������������������������ 333
Install AD Tools�������������������������������������������������������������������������������������������������������������������� 335
AWSAdminD-xxxxxxx����������������������������������������������������������������������������������������������������������� 336
Create a Snapshot��������������������������������������������������������������������������������������������������������������� 337
Restore a Snapshot������������������������������������������������������������������������������������������������������������� 338
Enable Single Sign-On��������������������������������������������������������������������������������������������������������� 338

ix
Table of Contents

Creating an Access URL������������������������������������������������������������������������������������������������������� 339


Enabling AWS Apps and Services���������������������������������������������������������������������������������������� 340
Enable Multi-Factor Authentication������������������������������������������������������������������������������������� 341
Disable Multi-Factor Authentication������������������������������������������������������������������������������������ 342
Deleting Simple AD Directory���������������������������������������������������������������������������������������������� 342
AWS Created Security Group����������������������������������������������������������������������������������������������� 342
Application Compatibility����������������������������������������������������������������������������������������������������� 343
Summary���������������������������������������������������������������������������������������������������������������������������������� 344

Chapter 13: Amazon WorkSpaces and Amazon AppStream 2.0��������������������������� 345


Amazon WorkSpaces Architecture�������������������������������������������������������������������������������������������� 345
Client Requirements������������������������������������������������������������������������������������������������������������ 347
Managing Amazon WorkSpaces������������������������������������������������������������������������������������������ 347
Amazon AppStream 2.0������������������������������������������������������������������������������������������������������������� 359
Amazon AppStream 2.0 Architecture����������������������������������������������������������������������������������� 359
Requirements���������������������������������������������������������������������������������������������������������������������� 360
Getting Started with AppStream 2.0������������������������������������������������������������������������������������ 361
Summary���������������������������������������������������������������������������������������������������������������������������������� 400

Chapter 14: Amazon WorkDocs���������������������������������������������������������������������������� 401


Client Requirements������������������������������������������������������������������������������������������������������������������ 401
Setting Up WorkDocs���������������������������������������������������������������������������������������������������������������� 402
Managing WorkDocs Users������������������������������������������������������������������������������������������������������� 409
Getting List of WorkDocs Users������������������������������������������������������������������������������������������� 409
Adding WorkDocs Users������������������������������������������������������������������������������������������������������ 410
Enabling WorkDocs Users���������������������������������������������������������������������������������������������������� 411
Disabling WorkDocs Users��������������������������������������������������������������������������������������������������� 412
Setting Role for WorkDocs Users����������������������������������������������������������������������������������������� 412
Creating Collaboration Folder���������������������������������������������������������������������������������������������� 414
Creating New WorkDocs Folder������������������������������������������������������������������������������������������� 415
Deleting WorkDocs Folder��������������������������������������������������������������������������������������������������� 416
Listing WorkDocs Folders Metadata������������������������������������������������������������������������������������ 417

x
Table of Contents

Describing WorkDocs Folders Contents������������������������������������������������������������������������������� 418


Getting WorkDocs Folder Path��������������������������������������������������������������������������������������������� 419
Removing WorkDocs Folder Contents��������������������������������������������������������������������������������� 421
Managing WorkDocs Content���������������������������������������������������������������������������������������������� 421
Summary���������������������������������������������������������������������������������������������������������������������������������� 422

Chapter 15: Systems Manager Basics������������������������������������������������������������������ 423


Systems Manager Prerequisites����������������������������������������������������������������������������������������������� 423
IAM Access to Systems Manager���������������������������������������������������������������������������������������� 424
Creating an IAM Instance Profile for Systems Manager������������������������������������������������������ 424
AWS Resource Groups�������������������������������������������������������������������������������������������������������������� 425
Creating New Resource Groups������������������������������������������������������������������������������������������� 426
Updating Resource Groups�������������������������������������������������������������������������������������������������� 427
Finding Resources with a Resource Query�������������������������������������������������������������������������� 428
Listing Resource Groups������������������������������������������������������������������������������������������������������ 429
Deleting Resource Groups��������������������������������������������������������������������������������������������������� 429
Listing Resources in a Resource Group������������������������������������������������������������������������������� 429
Built-In Insights������������������������������������������������������������������������������������������������������������������������� 430
Session Manager���������������������������������������������������������������������������������������������������������������������� 430
Connecting with Session Manager�������������������������������������������������������������������������������������� 431
Parameter Store������������������������������������������������������������������������������������������������������������������������ 434
Using Parameter Store�������������������������������������������������������������������������������������������������������� 434
Finding the Latest Windows AMI����������������������������������������������������������������������������������������� 435
Finding the Latest Linux AMI����������������������������������������������������������������������������������������������� 435
Referencing Values with Systems Manager������������������������������������������������������������������������ 435
Summary���������������������������������������������������������������������������������������������������������������������������������� 440

Chapter 16: Systems Manager: Run Command, Automation,


and State Manager����������������������������������������������������������������������������������������������� 441
AWS Systems Manager (SSM) Documents������������������������������������������������������������������������������� 442
SSM Document Types���������������������������������������������������������������������������������������������������������� 442
Working with Documents in the AWS Systems Manager Console��������������������������������������� 443
Working with Documents Using PowerShell����������������������������������������������������������������������� 448

xi
Table of Contents

Run Command�������������������������������������������������������������������������������������������������������������������������� 451


Run Command Using the AWS Systems Manager Console������������������������������������������������� 451
Run Command Using PowerShell���������������������������������������������������������������������������������������� 455
AWS Systems Manager Automation������������������������������������������������������������������������������������������ 458
User Access to Automation�������������������������������������������������������������������������������������������������� 458
Automation Roles���������������������������������������������������������������������������������������������������������������� 458
Listing Automation Documents�������������������������������������������������������������������������������������������� 458
Starting an Automation Execution��������������������������������������������������������������������������������������� 459
Getting Automation Execution Status���������������������������������������������������������������������������������� 460
AWS Systems Manager State Manager������������������������������������������������������������������������������������ 460
Creating an Association������������������������������������������������������������������������������������������������������� 460
Summary���������������������������������������������������������������������������������������������������������������������������������� 464

Chapter 17: Systems Manager: Inventory and Patch Manager���������������������������� 465


AWS Systems Manager Inventory��������������������������������������������������������������������������������������������� 466
Systems Manager Inventory in the Console������������������������������������������������������������������������ 466
Creating an Inventory Association��������������������������������������������������������������������������������������� 467
Inventory Schemas�������������������������������������������������������������������������������������������������������������� 468
Viewing Inventory Data�������������������������������������������������������������������������������������������������������� 469
Aggregating Inventory Data������������������������������������������������������������������������������������������������� 471
AWS Systems Manager Patch Manager������������������������������������������������������������������������������������ 472
Patch Baselines������������������������������������������������������������������������������������������������������������������� 473
Patch Groups����������������������������������������������������������������������������������������������������������������������� 475
Maintenance Windows�������������������������������������������������������������������������������������������������������� 476
Summary���������������������������������������������������������������������������������������������������������������������������������� 486

Chapter 18: Lambda with PowerShell������������������������������������������������������������������ 487


PowerShell-Based Lambda Prerequisites��������������������������������������������������������������������������������� 487
Authoring PowerShell-Based Lambda Functions���������������������������������������������������������������������� 489
Creating a Script Template�������������������������������������������������������������������������������������������������� 489
Understanding Modules������������������������������������������������������������������������������������������������������� 491
Understanding Input������������������������������������������������������������������������������������������������������������ 492

xii
Table of Contents

Understanding Output and Logging������������������������������������������������������������������������������������� 492


Understanding Errors���������������������������������������������������������������������������������������������������������� 493
The LambdaContext Variable����������������������������������������������������������������������������������������������� 493
Creating a PowerShell Lambda Package����������������������������������������������������������������������������� 494
Publishing a PowerShell-Based Lambda Function�������������������������������������������������������������� 497
Invoking Lambda Functions������������������������������������������������������������������������������������������������� 502
Lambda CloudWatch Logs��������������������������������������������������������������������������������������������������� 504
Lambda Event Trigger���������������������������������������������������������������������������������������������������������� 506
Summary���������������������������������������������������������������������������������������������������������������������������������� 512

Index��������������������������������������������������������������������������������������������������������������������� 513

xiii
About the Authors
Brian Beach has over 20 years of experience as a Developer
and Architect and has spent the past 4 years focusing on
Amazon Web Services. He holds a Computer Engineering
degree from NYU-Poly and an MBA from Rutgers Business
School. He published Pro PowerShell for Amazon Web
Services in 2014. He is a regular author and has spoken at
a number of events around the world. Brian lives in North
Carolina with his wife and three kids.

Steven Armentrout is a Systems Engineer at a major cloud


provider. He has over 15 years of experience in the public
and private sectors with roles as System Administrator,
Network Engineer, and Systems Engineer. Steven has earned
over a dozen information technology certifications to
include Microsoft Certified Solutions Expert (MCSE), Cisco
Certified Network Associate (CCNA), and Certified Ethical
Hacker (CEH). Steven has a BS in Business from Northern
Arizona University.

xv
Discovering Diverse Content Through
Random Scribd Documents
of his execution. I regret that my engagements and duties were such
that I could not then and there accept his invitation, for I could not
doubt the sincerity with which it was given, or fail to see the value of
compliance. Mr. Hunter not only congratulated me upon my speech,
but at parting, gave me a friendly grip, and added that if Robert E.
Lee were alive and present, he knew he would give me his hand
also.
This man’s presence added much to the interest of the occasion
by his frequent interruptions, approving, and condemning my
sentiments as they were uttered. I only regret that he did not
undertake a formal reply to my speech, but this, though invited, he
declined to do. It would have given me an opportunity of fortifying
certain positions in my address which were perhaps insufficiently
defended. Upon the whole, taking the visit to Capt. Auld, to Easton
with its old jail, to the home of my old master at Col. Lloyd’s, and this
visit to Harper’s Ferry, with all their associations, they fulfill the
expectation created at the beginning of this chapter.
CHAPTER XVII.
INCIDENTS AND EVENTS.

Hon. Gerrit Smith and Mr. E. C. Delevan—Experiences at Hotels and on


Steamboats and other modes of travel—Hon. Edward Marshall—Grace
Greenwood—Hon. Moses Norris—Rob’t J. Ingersoll—Reflections and
conclusions—Compensations.

IN escaping from the South, the reader will have observed that I did
not escape from its wide-spread influence in the North. That
influence met me almost everywhere outside of pronounced anti-
slavery circles, and sometimes even within them. It was in the air,
and men breathed it and were permeated by it, often when they were
quite unconscious of its presence.
I might recount many occasions when I have encountered this
feeling, some painful and melancholy, some ridiculous and amusing.
It has been a part of my mission to expose the absurdity of this spirit
of caste and in some measure help to emancipate men from its
control.
Invited to accompany Hon. Gerrit Smith to dine with Mr. E. C.
Delevan, at Albany many years ago, I expressed to Mr. Smith, my
awkwardness and embarrassment in the society I was likely to meet
there. “Ah!” said that good man, “you must go, Douglass, it is your
mission to break down the walls of separation between the two
races.” I went with Mr. Smith, and was soon made at ease by Mr.
Delevan and the ladies and gentlemen there. They were among the
most refined and brilliant people I had ever met. I felt somewhat
surprised that I could be so much at ease in such company, but I
found it then, as I have since, that the higher the gradation in
intelligence and refinement, the farther removed are all artificial
distinctions, and restraints of mere caste or color.
In one of my anti-slavery campaigns in New York, five and thirty
years ago, I had an appointment at Victor, a town in Ontario County.
I was compelled to stop at the hotel. It was the custom at that time,
to seat the guests at a long table running the length of the dining
room. When I entered I was shown a little table off in a corner. I
knew what it meant, but took my dinner all the same. When I went to
the desk to pay my bill, I said, “Now, Landlord, be good enough to
tell me just why you gave me my dinner at the little table in the
corner by myself?” He was equal to the occasion, and quickly
replied: “Because you see, I wished to give you something better
than the others.” The cool reply staggered me, and I gathered up my
change, muttering only that I did not want to be treated better than
other people, and bade him good morning.
On an anti-slavery tour through the West, in company with H.
Ford Douglas, a young colored man of fine intellect and much
promise, and my old friend John Jones, (both now deceased,) we
stopped at a Hotel in Janesville, and were seated by ourselves to
take our meals, where all the bar-room loafers of the town could
stare us. Thus seated I took occasion to say, loud enough for the
crowd to hear me, that I had just been out to the stable and had
made a great discovery. Asked by Mr. Jones what my discovery was,
I said that I saw there, black horses and white horses eating together
from the same trough in peace, from which I inferred that the horses
of Janesville were more civilized than its people. The crowd saw the
hit, and broke out into a good-natured laugh. We were afterwards
entertained at the same table with other guests.
Many years ago, on my way from Cleveland to Buffalo, on one of
the Lake Steamers, the gong sounded for supper. There was a
rough element on board, such as at that time might be found
anywhere between Buffalo and Chicago. It was not to be trifled with
especially when hungry. At the first sound of the gong there was a
furious rush for the table. From prudence, more than from lack of
appetite, I waited for the second table, as did several others. At this
second table I took a seat far apart from the few gentlemen scattered
along its side, but directly opposite a well dressed, finely-featured
man, of the fairest complexion, high forehead, golden hair and light
beard. His whole appearance told me he was somebody. I had been
seated but a minute or two, when the steward came to me, and
roughly ordered me away. I paid no attention to him, but proceeded
to take my supper, determined not to leave, unless compelled to do
so by superior force, and being young and strong I was not entirely
unwilling to risk the consequences of such a contest. A few moments
passed, when on each side of my chair, there appeared a stalwart of
my own race. I glanced at the gentleman opposite. His brow was
knit, his color changed from white to scarlet, and his eyes were full of
fire. I saw the lightning flash, but I could not tell where it would strike.
Before my sable brethren could execute their captain’s order, and
just as they were about to lay violent hands upon me, a voice from
that man of golden hair and fiery eyes resounded like a clap of
summer thunder. “Let the gentleman alone! I am not ashamed to
take my tea with Mr. Douglass.” His was a voice to be obeyed, and
my right to my seat and my supper was no more disputed.
I bowed my acknowledgments to the gentleman, and thanked
him for his chivalrous interference; and as modestly as I could,
asked him his name. “I am Edward Marshall of Kentucky, now of
California,” he said. “Sir, I am very glad to know you, I have just been
reading your speech in Congress,” I said. Supper over, we passed
several hours in conversation with each other, during which he told
me of his political career in California, of his election to Congress,
and that he was a Democrat, but had no prejudice against color. He
was then just coming from Kentucky where he had been in part to
see his black mammy, for, said he, “I nursed at the breasts of a
colored mother.”
I asked him if he knew my old friend John A. Collins in California.
“Oh, yes,” he replied, “he is a smart fellow; he ran against me for
Congress. I charged him with being an abolitionist, but he denied it,
so I sent off and got the evidence of his having been general agent
of the Massachusetts Anti-Slavery Society, and that settled him.”
During the passage, Mr. Marshall invited me into the bar-room to
take a drink. I excused myself from drinking, but went down with him.
There were a number of thirsty looking individuals standing around,
to whom Mr. Marshall said, “Come, boys, take a drink.” When the
drinking was over, he threw down upon the counter a twenty dollar
gold piece, at which the bar-keeper made large eyes, and said he
could not change it. “Well, keep it,” said the gallant Marshall, “it will
all be gone before morning.” After this, we naturally fell apart, and he
was monopolized by other company; but I shall never fail to bear
willing testimony to the generous and manly qualities of this brother
of the gifted and eloquent Thomas Marshall of Kentucky.
In 1842 I was sent by the Massachusetts Anti-Slavery Society to
hold a Sunday meeting in Pittsfield, N. H., and was given the name
of Mr. Hilles, a subscriber to the Liberator. It was supposed that any
man who had the courage to take and read the Liberator, edited by
Wm. Lloyd Garrison, or the Herald of Freedom, edited by Nathaniel
P. Rodgers, would gladly receive and give food and shelter to any
colored brother laboring in the cause of the slave. As a general rule
this was very true.
There were no railroads in New Hampshire in those days, so I
reached Pittsfield by stage, glad to be permitted to ride upon the top
thereof, for no colored person could be allowed inside. This was
many years before the days of civil rights bills, black Congressmen,
colored United States Marshals, and such like.
Arriving at Pittsfield, I was asked by the driver where I would
stop. I gave him the name of my subscriber to the Liberator. “That is
two miles beyond,” he said. So after landing his other passengers,
he took me on to the house of Mr. Hilles.
I confess I did not seem a very desirable visitor. The day had
been warm, and the road dusty. I was covered with dust, and then I
was not of the color fashionable in that neighborhood, for colored
people were scarce in that part of the old Granite State. I saw in an
instant, that though the weather was warm, I was to have a cool
reception; but cool or warm, there was no alternative left me but to
stay and take what I could get.
Mr. Hilles scarcely spoke to me, and from the moment he saw
me jump down from the top of the stage, carpet-bag in hand, his face
wore a troubled look. His good wife took the matter more
philosophically, and evidently thought my presence there for a day or
two could do the family no especial harm; but her manner was
restrained, silent, and formal, wholly unlike that of anti-slavery ladies
I had met in Massachusetts and Rhode Island.
When tea time came, I found that Mr. Hilles had lost his appetite,
and could not come to the table. I suspected his trouble was
colorphobia, and though I regretted his malady, I knew his case was
not necessarily dangerous; and I was not without some confidence in
my skill and ability in healing diseases of that type. I was, however,
so affected by his condition that I could not eat much of the pie and
cake before me, and felt so little in harmony with things about me
that I was, for me, remarkably reticent during the evening, both
before and after the family worship, for Mr. Hilles was a pious man.
Sunday morning came, and in due season the hour for meeting.
I had arranged a good supply of work for the day. I was to speak four
times: at ten o’clock A. M., at one P. M., at five, and again at half-
past seven in the evening.
When meeting time came, Mr. Hilles brought his fine phaeton to
the door, assisted his wife in, and, although there were two vacant
seats in his carriage, there was no room in it for me. On driving off
from his door, he merely said, addressing me, “You can find your
way to the town hall, I suppose?” “I suppose I can,” I replied, and
started along behind his carriage on the dusty road toward the
village. I found the hall, and was very glad to see in my small
audience the face of good Mrs. Hilles. Her husband was not there,
but had gone to his church. There was no one to introduce me, and I
proceeded with my discourse without introduction. I held my
audience till twelve o’clock—noon—and then took the usual recess
of Sunday meetings in country towns, to allow the people to take
their lunch. No one invited me to lunch, so I remained in the town
hall till the audience assembled again, when I spoke till nearly three
o’clock, when the people again dispersed and left me as before. By
this time I began to be hungry, and seeing a small hotel near, I went
into it, and offered to buy a meal; but I was told “they did not
entertain niggers there.” I went back to the old town hall hungry and
chilled, for an infant “New England northeaster” was beginning to
chill the air, and a drizzling rain to fall. I saw that my movements
were being observed, from the comfortable homes around, with
apparently something of the feeling that children might experience in
seeing a bear prowling about town. There was a grave-yard near the
town hall, and attracted thither, I felt some relief in contemplating the
resting places of the dead, where there was an end to all distinctions
between rich and poor, white and colored, high and low.
While thus meditating on the vanities of the world and my own
loneliness and destitution, and recalling the sublime pathos of the
saying of Jesus, “The foxes have holes, and the birds of the air have
nests, but the Son of Man hath not where to lay His head,” I was
approached rather hesitatingly by a gentleman, who inquired my
name. “My name is Douglass,” I replied. “You do not seem to have
any place to stay while in town?” I told him I had not. “Well,” said he,
“I am no abolitionist, but if you will go with me I will take care of you.”
I thanked him, and turned with him towards his fine residence. On
the way I asked him his name. “Moses Norris,” he said. “What! Hon.
Moses Norris?” I asked. “Yes,” he answered. I did not for a moment
know what to do, for I had read that this same man had literally
dragged the Reverend George Storrs from the pulpit, for preaching
abolitionism. I, however, walked along with him and was invited into
his house, when I heard the children running and screaming “Mother,
mother, there is a nigger in the house, there’s a nigger in the house”;
and it was with some difficulty that Mr. Norris succeeded in quieting
the tumult. I saw that Mrs. Norris, too, was much disturbed by my
presence, and I thought for a moment of beating a retreat, but the
kind assurances of Mr. Norris decided me to stay. When quiet was
restored, I ventured the experiment of asking Mrs. Norris to do me a
kindness. I said, “Mrs. Norris, I have taken cold, and am hoarse from
speaking, and I have found that nothing relieves me so readily as a
little loaf sugar and cold water.” The lady’s manner changed, and
with her own hands she brought me the water and sugar. I thanked
her with genuine earnestness, and from that moment I could see that
her prejudices were more than half gone, and that I was more than
half welcome at the fireside of this Democratic Senator. I spoke
again in the evening, and at the close of the meeting there was quite
a contest between Mrs. Norris and Mrs. Hilles, as to which I should
go home with. I considered Mrs. Hilles’ kindness to me, though her
manner had been formal; I knew the cause, and I thought, especially
as my carpet-bag was there, I would go with her. So giving Mr. and
Mrs. Norris many thanks, I bade them good-bye, and went home
with Mr. and Mrs. Hilles, where I found the atmosphere wondrously
and most agreeably changed. Next day, Mr. Hilles took me in the
same carriage in which I did not ride on Sunday, to my next
appointment, and on the way told me he felt more honored by having
me in it, than he would be if he had the President of the United
States. This compliment would have been a little more flattering to
my self-esteem, had not John Tyler then occupied the Presidential
chair.
In those unhappy days of the Republic, when all presumptions
were in favor of slavery, and a colored man as a slave met less
resistance in the use of public conveyances than a colored man as a
freeman, I happened to be in Philadelphia, and was afforded an
opportunity to witness this preference. I took a seat in a street car by
the side of my friend Mrs. Amy Post, of Rochester, New York, who,
like myself, had come to Philadelphia to attend an anti-slavery
meeting. I had no sooner seated myself when the conductor
hastened to remove me from the car. My friend remonstrated, and
the amazed conductor said, “Lady, does he belong to you?” “He
does,” said Mrs. Post, and there the matter ended. I was allowed to
ride in peace, not because I was a man, and had paid my fare, but
because I belonged to somebody? My color was no longer offensive
when it was supposed that I was not a person, but a piece of
property.
Another time, in the same city, I took a seat, unobserved, far up
in the street car, among the white passengers. All at once I heard the
conductor, in an angry tone, order another colored man, who was
modestly standing on the platform of the rear end of the car, to get
off, and actually stopped the car to push him off, when I, from within,
with all the emphasis I could throw into my voice, in imitation of my
chivalrous friend Marshall of Kentucky, sung out, “Go on! let the
gentleman alone; no one here objects to his riding!” Unhappily the
fellow saw where the voice came from, and turned his wrathful
attention to me, and said, “You shall get out also!” I told him I would
do no such thing, and if he attempted to remove me by force he
would do it at his peril. Whether the young man was afraid to tackle
me, or did not wish to disturb the passengers, I do not know. At any
rate he did not attempt to execute his threat, and I rode on in peace
till I reached Chestnut street, when I got off and went about my
business.
On my way down the Hudson river, from Albany to New York, at
one time, on the steamer Alida, in company with some English ladies
who had seen me in their own country, received and treated me as a
gentleman, I ventured, like any other passenger, to go, at the call of
the dinner bell, into the cabin and take a seat at the table; but I was
forcibly taken from it and compelled to leave the cabin. My friends,
who wished to enjoy a day’s trip on the beautiful Hudson, left the
table with me, and went to New York hungry and not a little indignant
and disgusted at such barbarism. There were influential persons on
board the Alida, on this occasion, a word from whom might have
spared me this indignity; but there was no Edward Marshall among
them to defend the weak and rebuke the strong.
When Miss Sarah Jane Clark, one of America’s brilliant literary
ladies, known to the world under the nom de plume of Grace
Greenwood, was young, and as brave as she was beautiful, I
encountered a similar experience to that on the Alida on one of the
Ohio river steamers; and that lady, being on board, arose from her
seat at the table, expressed her disapprobation, and moved
majestically away with her sister to the upper deck. Her conduct
seemed to amaze the lookers on, but it filled me with grateful
admiration.
When on my way to attend the great Free Soil Convention at
Pittsburg, in 1852, which nominated John P. Hale for President, and
George W. Julian for Vice-President, the train stopped for dinner at
Alliance, Ohio, and I attempted to enter the hotel with the other
delegates, but was rudely repulsed, when many of them, learning of
it, rose from the table, and denounced the outrage, and refused to
finish their dinners.
In anticipation of our return, at the close of the Convention, Mr.
Sam. Beck, the proprietor of the hotel, prepared dinner for three
hundred guests, but when the train arrived, not one of the large
company went into his place, and his dinner was left to spoil.
A dozen years ago, or more, on one of the frostiest and coldest
nights I ever experienced, I delivered a lecture in the town of
Elmwood, Illinois, twenty miles distant from Peoria. It was one of
those bleak and flinty nights, when prairie winds pierce like needles,
and a step on the snow sounds like a file on the steel teeth of a saw.
My next appointment after Elmwood was on Monday night, and in
order to reach it in time, it was necessary to go to Peoria the night
previous, so as to take an early morning train, and I could only
accomplish this by leaving Elmwood after my lecture at midnight, for
there was no Sunday train. So a little before the hour at which my
train was expected at Elmwood, I started for the station with my
friend Mr. Brown, the gentleman who had kindly entertained me
during my stay. On the way I said to him, “I am going to Peoria with
something like a real dread of the place. I expect to be compelled to
walk the streets of that city all night to keep from freezing.” I told him
“that the last time I was there I could obtain no shelter at any hotel,
and that I feared I should meet a similar exclusion to-night.” Mr.
Brown was visibly affected by the statement, and for some time was
silent. At last, as if suddenly discovering a way out of a painful
situation, he said, “I know a man in Peoria, should the hotels be
closed against you there, who would gladly open his doors to you—a
man who will receive you at any hour of the night, and in any
weather, and that man is Robert J. Ingersoll.” “Why,” said I, “it would
not do to disturb a family at such a time as I shall arrive there, on a
night so cold as this.” “No matter about the hour,” he said; “neither he
nor his family would be happy if they thought you were shelterless on
such a night. I know Mr. Ingersoll, and that he will be glad to
welcome you at midnight or at cock-crow.” I became much interested
by this description of Mr. Ingersoll. Fortunately I had no occasion for
disturbing him or his family. I found quarters at the best hotel in the
city for the night. In the morning I resolved to know more of this now
famous and noted “infidel.” I gave him an early call, for I was not so
abundant in cash as to refuse hospitality in a strange city when on a
mission of “good will to men.” The experiment worked admirably. Mr.
Ingersoll was at home, and if I have ever met a man with real living
human sunshine in his face, and honest, manly kindness in his
voice, I met one who possessed these qualities that morning. I
received a welcome from Mr. Ingersoll and his family which would
have been a cordial to the bruised heart of any proscribed and
storm-beaten stranger, and one which I can never forget or fail to
appreciate. Perhaps there were Christian ministers and Christian
families in Peoria at that time by whom I might have been received in
the same gracious manner. In charity I am bound to say there
probably were such ministers and such families, but I am equally
bound to say that in my former visits to this place I had failed to find
them. Incidents of this character have greatly tended to liberalize my
views as to the value of creeds in estimating the character of men.
They have brought me to the conclusion that genuine goodness is
the same, whether found inside or outside the church, and that to be
an “infidel” no more proves a man to be selfish, mean, and wicked,
than to be evangelical proves him to be honest, just, and humane.
It may possibly be inferred from what I have said of the
prevalence of prejudice, and the practice of proscription, that I have
had a very miserable sort of life, or that I must be remarkably
insensible to public aversion. Neither inference is true. I have neither
been miserable because of the ill-feeling of those about me, nor
indifferent to popular approval; and I think, upon the whole, I have
passed a tolerably cheerful and even joyful life. I have never felt
myself isolated since I entered the field to plead the cause of the
slave, and demand equal rights for all. In every town and city where
it has been my lot to speak, there have been raised up for me friends
of both colors to cheer and strengthen me in my work. I have always
felt, too, that I had on my side all the invisible forces of the moral
government of the universe. Happily for me I have had the wit to
distinguish between what is merely artificial and transient and what is
fundamental and permanent; and resting on the latter, I could
cheerfully encounter the former. “How do you feel,” said a friend to
me, “when you are hooted and jeered on the street on account of
your color?” “I feel as if an ass had kicked but had hit nobody,” was
my answer.
I have been greatly helped to bear up under unfriendly
conditions, too, by a constitutional tendency to see the funny sides of
things which has enabled me to laugh at follies that others would
soberly resent. Besides, there were compensations as well as
drawbacks in my relations to the white race. A passenger on the
deck of a Hudson River steamer, covered with a shawl, well-worn
and dingy, I was addressed by a remarkably-religiously-missionary-
looking man in black coat and white cravat, who took me for one of
the noble red men of the far West, with “From away back?” I was
silent, and he added, “Indian, Indian?” “No, no,” I said; “I am a
negro.” The dear man seemed to have no missionary work with me,
and retreated with evident marks of disgust.
On another occasion, traveling by a night train on the New York
Central railroad, when the cars were crowded and seats were
scarce, and I was occupying a whole seat, the only luxury my color
afforded me in traveling, I had laid down with my head partly
covered, thinking myself secure in my possession, when a well
dressed man approached and wished to share the seat with me.
Slightly rising, I said, “Don’t sit down here, my friend, I am a nigger.”
“I don’t care who the devil you are,” he said, “I mean to sit with you.”
“Well, if it must be so,” I said, “I can stand it if you can,” and we at
once fell into a very pleasant conversation, and passed the hours on
the road very happily together. These two incidents illustrate my
career in respect of popular prejudice. If I have had kicks, I have also
had kindness. If cast down, I have been exalted; and the latter
experience has, after all, far exceeded the former.
During a quarter of a century I resided in the city of Rochester,
N. Y. When I removed from there, my friends caused a marble bust
to be made from me, and have since honored it with a place in
Sibley Hall, of Rochester University. Less in a spirit of vanity than
that of gratitude, I copy here the remarks of the Rochester Democrat
and Chronicle on the occasion, and on my letter of thanks for the
honor done me by my friends and fellow-citizens of that beautiful
city:

Rochester, June 28, 1879.


FREDERICK DOUGLASS.
“It will be remembered that a bust of Frederick Douglass was
recently placed in Sibley Hall of the University of Rochester. The
ceremonies were quite informal, too informal, we think, as
commemorating a deserved tribute from the people of Rochester
to one who will always rank as among her most distinguished
citizens. Mr. Douglass himself was not notified officially of the
event, and therefore could, in no public manner, take notice of it.
He was, however, informed privately of it by the gentleman
whose address is given below, and responded to it most happily,
as will be seen by the following letter which we are permitted to
publish.” Then follows the letter which I omit, and add the further
comments of the Chronicle. “It were alone worth all the efforts of
the gentlemen who united in the fitting recognition of the public
services and the private worth of Frederick Douglass, to have
inspired a letter thus tender in its sentiment, and so suggestive
of the various phases of a career than which the republic has
witnessed none more strange or more noble. Frederick
Douglass can hardly be said to have risen to greatness on
account of the opportunities which the republic offers to self-
made men, and concerning which we are apt to talk with an
abundance of self-gratulation. It sought to fetter his mind equally
with his body. For him it builded no school-house, and for him it
erected no church. So far as he was concerned freedom was a
mockery, and law was the instrument of tyranny. In spite of law
and gospel, despite of statutes which thralled him and
opportunities which jeered at him, he made himself by trampling
on the law and breaking through the thick darkness that
encompassed him. There is no sadder commentary upon
American slavery than the life of Frederick Douglass. He put it
under his feet and stood erect in the majesty of his intellect; but
how many intellects as brilliant and as powerful as his it stamped
upon and crushed, no mortal can tell until the secrets of its
terrible despotism are fully revealed. Thanks to the conquering
might of American freemen, such sad beginnings of such
illustrious lives as that of Frederick Douglass are no longer
possible; and that they are no longer possible, is largely due to
him who, when his lips were unlocked, became a deliverer of his
people. Not alone did his voice proclaim emancipation. Eloquent
as was that voice, his life in its pathos and in its grandeur, was
more eloquent still; and where shall be found, in the annals of
humanity, a sweeter rendering of poetic justice than that he, who
has passed through such vicissitudes of degradation and
exaltation, has been permitted to behold the redemption of his
race?
“Rochester is proud to remember that Frederick Douglass
was, for many years, one of her citizens. He who pointed out the
house where Douglass lived, hardly exaggerated when he called
it the residence of the greatest of our citizens; for Douglass must
rank as among the greatest men, not only of this city, but of the
nation as well—great in gifts, greater in utilizing them, great in
his inspiration, greater in his efforts for humanity, great in the
persuasion of his speech, greater in the purpose that informed it.
“Rochester could do nothing more graceful than to
perpetuate in marble the features of this citizen in her hall of
learning; and it is pleasant for her to know that he so well
appreciates the esteem in which he is held here. It was a
thoughtful thing for Rochester to do, and the response is as
heartfelt as the tribute is appropriate.”
CHAPTER XVIII.
“HONOR TO WHOM HONOR.”

Grateful recognition—Friends in need—Lucretia Mott—Lydia Maria Child—


Sarah and Angelina Grimke—Abby Kelly—H. Beecher Stowe—Other
Friends—Woman Suffrage.

Gratitude to benefactors is a well recognized virtue, and to


express it in some form or other, however imperfectly, is a duty to
ourselves as well as to those who have helped us. Never reluctant or
tardy, I trust, in the discharge of this duty, I have seldom been
satisfied with the manner of its performance. When I have made my
best effort in this line, my words have done small justice to my
feelings. And now, in mentioning my obligations to my special
friends, and acknowledging the help I received from them in the days
of my need, I can hope to do no better than give a faint hint of my
sense of the value of their friendship and assistance. I have
sometimes been credited with having been the architect of my own
fortune, and have pretty generally received the title of a “self-made
man;” and while I cannot altogether disclaim this title, when I look
back over the facts of my life, and consider the helpful influences
exerted upon me, by friends more fortunately born and educated
than myself, I am compelled to give them at least an equal measure
of credit, with myself, for the success which has attended my labors
in life. The little energy, industry, and perseverance which have been
mine, would hardly have availed me, in the absence of thoughtful
friends, and highly favoring circumstances. Without these, the last
forty years of my life might have been spent on the wharves of New
Bedford, rolling oil casks, loading ships for whaling voyages, sawing
wood, putting in coal, picking up a job here and there, wherever I
could find one, holding my own with difficulty against gauntsided
poverty, in the race for life and bread. I never see one of my old
companions of the lower strata, begrimed by toil, hard handed, and
dust covered, receiving for wages scarcely enough to keep the “wolf”
at a respectful distance from his door and hearthstone, without a
fellow feeling and the thought that I have been separated from him
only by circumstances other than those of my own making. Much to
be thankful for, but little room for boasting here. It was mine to take
the “Tide at its flood.” It was my good fortune to get out of slavery at
the right time, and to be speedily brought into contact with that circle
of highly cultivated men and women, banded together for the
overthrow of slavery, of which Wm. Lloyd Garrison was the
acknowledged leader. To these friends, earnest, courageous,
inflexible, ready to own me as a man and brother, against all the
scorn, contempt, and derision of a slavery-polluted atmosphere, I
owe my success in life. The story is simple, and the truth plain. They
thought that I possessed qualities that might be made useful to my
race, and through them I was brought to the notice of the world, and
gained a hold upon the attention of the American people, which I
hope remains unbroken to this day. The list of these friends is too
long certainly to be inserted here, but I cannot forbear to recall in this
connection the names of Francis Jackson, Joseph Southwick,
Samuel E. Sewell, Samuel J. May, John Pierpont, Henry I. Bowditch,
Theodore Parker, Wendell Phillips, Edmund Quincy, Isaac T. Hopper,
James N. Buffum, Ellis Gray Loring, Andrew Robeson, Seth Hunt,
Arnold Buffum, Nathaniel B. Borden, Boone Spooner, William
Thomas, John Milton Earle, John Curtis, George Foster, Clother
Gifford, John Bailey, Nathaniel P. Rodgers, Stephen S. Foster,
Parker Pillsbury, the Hutchinson family, Dr. Peleg Clark, the Burleigh
brothers, William Chase, Samuel and Harvey Chase, John Brown,
C. C. Eldredge, Daniel Mitchell, William Adams, Isaac Kenyon,
Joseph Sisson, Daniel Goold, Kelton brothers, Geo. James Adams,
Martin Cheeney, Edward Harris, Robert Shove, Alpheus Jones, Asa
Fairbanks, Gen. Sam’l Fessenden, William Aplin, John Clark,
Thomas Davis, George L. Clark; these all took me to their hearts and
homes, and inspired me with an incentive which a confiding and
helpful friendship can alone impart.
Nor were my influential friends all of the Caucasian race. While
many of my own people thought me unwise and somewhat fanatical
in announcing myself a fugitive slave, and in practically asserting the
rights of my people, on all occasions, in season and out of season,
there were brave and intelligent men of color all over the United
States who gave me their cordial sympathy and support. Among
these, and foremost, I place the name of Doctor James McCune
Smith; educated in Scotland, and breathing the free air of that
country, he came back to his native land with ideas of liberty which
placed him in advance of most of his fellow citizens of African
descent. He was not only a learned and skillful physician, but an
effective speaker, and a keen and polished writer. In my newspaper
enterprise, I found in him an earnest and effective helper. The cause
of his people lost an able advocate when he died. He was never
among the timid who thought me too aggressive and wished me to
tone down my testimony to suit the times. A brave man himself, he
knew how to esteem courage in others.
Of David Ruggles I have already spoken. He gave me my send
off from New York to New Bedford, and when I came into public life,
he was among the first with words of cheer. Jehial C. Beman too, a
noble man, kindly took me by the hand. Thomas Van Rauselear was
among my fast friends. No young man, starting in an untried field of
usefulness, and needing support, could find that support in larger
measure than I found it, in William Whipper, Robert Purvis, William P.
Powell, Nathan Johnson, Charles B. Ray, Thomas Downing,
Theodore S. Wright, Charles L. Reason. Notwithstanding what I
have said of my treatment, at times, by people of my own color,
when traveling, I am bound to say that there is another and brighter
side to that picture. Among the waiters and attendants on public
conveyances, I have often found real gentlemen; intelligent, aspiring,
and those who fully appreciated all my efforts in behalf of our
common cause. Especially have I found this to be the case in the
East. A more gentlemanly and self-respecting class of men it would
be difficult to find, than those to be met on the various lines between
New York and Boston. I have never wanted for kind attention, or any
effort they could make to render my journeying with them smooth
and pleasant. I owe this solely to my work in our common cause, and
to their intelligent estimate of the value of that work. Republics are
said to be ungrateful, but ingratitude is not among the weaknesses of
my people. No people ever had a more lively sense of the value of
faithful endeavor to serve their interests than they. But for this feeling
towards me on their part, I might have passed many nights hungry
and cold, and without any place to lay my head. I need not name my
colored friends to whom I am thus indebted. They do not desire such
mention, but I wish any who have shown me kindness, even so
much as to give me a cup of cold water, to feel themselves included
in my thanks.
It is also due to myself, to make some more emphatic mention
than I have yet done, of the honorable women, who have not only
assisted me, but who according to their opportunity and ability, have
generously contributed to the abolition of slavery and the recognition
of the equal manhood of the colored race. When the true history of
the anti-slavery cause shall be written, woman will occupy a large
space in its pages; for the cause of the slave has been peculiarly
woman’s cause. Her heart and her conscience have supplied in
large degree its motive and mainspring. Her skill, industry, patience,
and perseverance have been wonderfully manifest in every trial hour.
Not only did her feet run on “willing errands,” and her fingers do the
work which in large degree supplied the sinews of war, but her deep
moral convictions, and her tender human sensibilities, found
convincing and persuasive expression by her pen and her voice.
Foremost among these notable American women, who in point of
clearness of vision, breadth of understanding, fullness of knowledge,
catholicity of spirit, weight of character, and widespread influence,
was Lucretia Mott of Philadelphia. Great as this woman was in
speech, and persuasive as she was in her writings, she was
incomparably greater in her presence. She spoke to the world
through every line of her countenance. In her there was no lack of
symmetry—no contradiction between her thought and act. Seated in
an anti-slavery meeting, looking benignantly around upon the
assembly, her silent presence made others eloquent, and carried the
argument home to the heart of the audience.
The known approval of such a woman of any cause, went far to
commend it.
I shall never forget the first time I ever saw and heard Lucretia
Mott. It was in the town of Lynn, Massachusetts. It was not in a
magnificent hall, where such as she seemed to belong, but in a little
hall over Jonathan Buffum’s store, the only place then open, even in
that so-called radical anti-slavery town, for an anti-slavery meeting
on Sunday. But in this day of small things, the smallness of the place
was no matter of complaint or murmuring. It was a cause of rejoicing
that any kind of place could be had for such a purpose. But Jonathan
Buffum’s courage was equal to this and more.
The speaker was attired in the usual Quaker dress, free from
startling colors, plain, rich, elegant, and without superfluity—the very
sight of her a sermon. In a few moments after she began to speak, I
saw before me no more a woman, but a glorified presence, bearing a
message of light and love from the Infinite to a benighted and
strangely wandering world, straying away from the paths of truth and
justice into the wilderness of pride and selfishness, where peace is
lost and true happiness is sought in vain. I heard Mrs. Mott thus,
when she was comparatively young. I have often heard her since,
sometimes in the solemn temple, and sometimes under the open
sky, but whenever and wherever I have listened to her, my heart was
always made better, and my spirit raised by her words; and in
speaking thus for myself I am sure I am expressing the experience of
thousands.
Kindred in spirit with Mrs. Mott was Lydia Maria Child. They both
exerted an influence with a class of the American people which
neither Garrison, Phillips, nor Gerrit Smith could reach. Sympathetic
in her nature, it was easy for her to “remember those in bonds as
bound with them;” and her “appeal for that class of Americans called
Africans,” issued, as it was, at an early stage in the anti-slavery
conflict, was one of the most effective agencies in arousing attention
to the cruelty and injustice of slavery. When with her husband, David
Lee Child, she edited the National Anti-Slavery Standard, that paper
was made attractive to a broad circle of readers, from the
circumstance that each issue contained a “Letter from New York,”
written by her on some passing subject of the day, in which she
always managed to infuse a spirit of brotherly love and good will,
with an abhorrence of all that was unjust, selfish, and mean, and in
this way won many hearts to anti-slavery who else would have
remained cold and indifferent.
Of Sarah and Angelina Grimke I knew but little personally. These
brave sisters from Charleston, South Carolina, had inherited slaves,
but in their conversion from Episcopacy to Quakerism, in 1828,
became convinced that they had no right to such inheritance. They
emancipated their slaves and came North and entered at once upon
the pioneer work in the advancing education of woman, though they
saw then in their course only their duty to the slave. They had
“fought the good fight” before I came into the ranks, but by their
unflinching testimony and unwavering courage, they had opened the
way and made it possible, if not easy, for other women to follow their
example.
It is memorable of them that their public advocacy of anti-slavery
was made the occasion of the issuing of a papal bull in the form of a
“Pastoral letter,” by the Evangelical clergy of Boston, in which the
churches and all God-fearing people were warned against their
influence.
For solid, persistent, indefatigable work for the slave, Abby
Kelley was without rival. In the “History of Woman Suffrage,” just
published by Mrs. Stanton, Miss Anthony, and Mrs. Goslin Gage,
there is this fitting tribute to her: “Abby Kelley was the most untiring
and most persecuted of all the women who labored throughout the
anti-slavery struggle. She traveled up and down, alike in winter’s
cold and summer’s heat, with scorn, ridicule, violence, and mobs
accompanying her, suffering all kinds of persecutions, still speaking
whenever and wherever she gained an audience,—in the open air, in
school-house, barn, depot, church, or public hall, on weekday or
Sunday, as she found opportunity.” And, incredible as it will soon
seem, if it does not appear so already, “for listening to her on Sunday
many men and women were expelled from their churches.”

Вам также может понравиться