|
| 1 | +--- |
| 2 | +title: Account Management |
| 3 | +description: Get started with AWS Account Management on LocalStack |
| 4 | +--- |
| 5 | + |
| 6 | +## Introduction |
| 7 | + |
| 8 | +The Account service provides APIs to manage your AWS account. |
| 9 | +You can use the Account APIs to retrieve information about your account, manage your contact information and alternate contacts. |
| 10 | +Additionally, you can use the Account APIs to enable or disable a region for your account, and delete alternate contacts in your account. |
| 11 | + |
| 12 | +LocalStack supports Account via the Pro offering, allowing you to use the Account API to retrieve information about your account. |
| 13 | +The supported APIs are available on our [API coverage page](https://docs.localstack.cloud/references/coverage/coverage_account/), which provides information on the extent of Account's integration with LocalStack. |
| 14 | + |
| 15 | +{{< callout >}} |
| 16 | +LocalStack's Account provider is mock-only and does not support any real AWS account. |
| 17 | +The Account APIs are only intended to demonstrate how you can use and mock the AWS Account APIs in your local environment. |
| 18 | +It's important to note that LocalStack doesn't offer a programmatic interface to manage your AWS or your LocalStack account. |
| 19 | +{{< /callout >}} |
| 20 | + |
| 21 | +## Getting started |
| 22 | + |
| 23 | +This guide is designed for users who are new to Account and assumes basic knowledge of the AWS CLI and our [`awslocal`](https://github.com/localstack/awscli-local) wrapper script. |
| 24 | + |
| 25 | +Start your LocalStack container using your preferred method. |
| 26 | +We will demonstrate how to put contact information, fetch account details, and attach an alternate contact to your account. |
| 27 | + |
| 28 | +### Put contact information |
| 29 | + |
| 30 | +You can use the [`PutContactInformation`](https://docs.aws.amazon.com/accounts/latest/reference/API_PutContactInformation.html) API to add or update the contact information for your AWS account. |
| 31 | +Run the following command to add contact information to your account: |
| 32 | + |
| 33 | +{{< command >}} |
| 34 | +$ awslocal account put-contact-information \ |
| 35 | + --contact-information '{ |
| 36 | + "FullName": "Jane Doe", |
| 37 | + "PhoneNumber": "+XXXXXXXXX", |
| 38 | + "AddressLine1": "XXXX Main St", |
| 39 | + "City": "XXXX", |
| 40 | + "PostalCode": "XXXXX", |
| 41 | + "CountryCode": "US", |
| 42 | + "StateOrRegion": "WA" |
| 43 | + }' |
| 44 | +{{< /command >}} |
| 45 | + |
| 46 | +### Fetch account details |
| 47 | + |
| 48 | +You can use the [`GetContactInformation`](https://docs.aws.amazon.com/accounts/latest/reference/API_GetContactInformation.html) API to retrieve the contact information for your AWS account. |
| 49 | +Run the following command to fetch the contact information for your account: |
| 50 | + |
| 51 | +{{< command >}} |
| 52 | +$ awslocal account get-contact-information |
| 53 | +{{< /command >}} |
| 54 | + |
| 55 | +The command will return the contact information for your account: |
| 56 | + |
| 57 | +```json |
| 58 | +{ |
| 59 | + "ContactInformation": { |
| 60 | + "AddressLine1": "XXXX Main St", |
| 61 | + "City": "XXXX", |
| 62 | + "CountryCode": "US", |
| 63 | + "FullName": "Jane Doe", |
| 64 | + "PhoneNumber": "+XXXXXXXXX", |
| 65 | + "PostalCode": "XXXXX", |
| 66 | + "StateOrRegion": "WA" |
| 67 | + } |
| 68 | +} |
| 69 | +``` |
| 70 | + |
| 71 | +### Attach alternate contact |
| 72 | + |
| 73 | +You can attach an alternate contact using [`PutAlternateContact`](https://docs.aws.amazon.com/accounts/latest/reference/API_PutAlternateContact.html) API. |
| 74 | +Run the following command to attach an alternate contact to your account: |
| 75 | + |
| 76 | +{{< command >}} |
| 77 | +$ awslocal account put-alternate-contact \ |
| 78 | + --alternate-contact-type "BILLING" \ |
| 79 | + --email-address " [email protected]" \ |
| 80 | + --name "Bill Ing" \ |
| 81 | + --phone-number "+1 555-555-5555" \ |
| 82 | + --title "Billing" |
| 83 | +{{< /command >}} |
| 84 | + |
| 85 | +## Resource Browser |
| 86 | + |
| 87 | +The LocalStack Web Application provides a Resource Browser for managing contact information & alternate accounts for the Account service. |
| 88 | +You can access the Resource Browser by opening the LocalStack Web Application in your browser, navigating to the Resources section, and then clicking on **Account** under the **Management & Governance** section. |
| 89 | + |
| 90 | +<img src="account-resource-browser.png" alt="Account Resource Browser" title="Account Resource Browser" width="900" /> |
| 91 | +<br><br> |
| 92 | + |
| 93 | +The Resource Browser allows you to perform the following actions: |
| 94 | + |
| 95 | +* **Create Contact Information**: Add the contact information for your mocked AWS account by clicking on the **Create** button in the contact information section. |
| 96 | +* **Create Alternate Contact**: Add an alternate contact for your mocked AWS account by clicking on the **Create** button in the alternate contacts section. |
| 97 | +* **View Contact Information**: View the contact information for your mocked AWS account by clicking on the contact information. |
| 98 | +* **Update Contact Information**: Update the contact information for your mocked AWS account by clicking on the contact information. |
| 99 | +* **Filter**: Filter the contact information and alternate contacts by types, such as `BILLING`, `OPERATIONS`, and `SECURITY`. |
0 commit comments