Skip to content

Commit

Permalink
Merge pull request #4 from Coalfire-CF/ReadMe's-Review
Browse files Browse the repository at this point in the history
initial-upload
  • Loading branch information
kourosh-forti-hands authored Oct 3, 2023
2 parents bc87c1e + a0a0742 commit f746ee7
Showing 1 changed file with 58 additions and 69 deletions.
127 changes: 58 additions & 69 deletions aws/terraform/us-gov-west-1/management-account/day0/README.md
Original file line number Diff line number Diff line change
@@ -1,82 +1,71 @@
## DAY 0 Deployment
<div align="center">
<img src="coalfire_logo.png" width="200">

</div>

# AWS Account Setup Terraform Module

# DAY 0 Deployment Management Account

## Description

The AWS account set up module creates the initial account configuration for your project, including IAM roles, KMS keys, S3 installs bucket, and more.
This module provisions the management account setup, including initial account confirguations, IAM roles, KMS keys, S3 bucket installs, etc.

FedRAMP Compliance: High

## Resource List
## Dependencies
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | ~>1.5.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.0 |

Resources that are created as a part of this module include:

- IAM roles
- IAM policies
## Resource List
A high-level list of resources created as a part of this module.
- IAM Roles
- IAM Policies
- IAM instance profiles
- KMS keys
- KMS Keys
- S3 buckets
- Security core module resources

## Usage
- Region Setup
- Security Core Module Resources

## Code Updates

`tstate.tf` Update to the appropriate version and storage accounts, see sample
``` hcl
terraform {
required_version = ">=1.5.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
backend "s3" {
bucket = "ooc-us-gov-west-1-tf-state"
region = "us-gov-west-1"
key = "ooc-us-gov-west-1-tfsetup.tfstate"
dynamodb_table = "ooc-us-gov-west-1-state-lock"
encrypt = true
}
}
```
module "account-setup" {
source = "github.com/Coalfire-CF/terraform-aws-account-setup"
aws_region = "us-east-1"
default_aws_region = "us-east-1"

application_account_numbers = ["account-number1", "account-number2", "account-number3"]
account_number = "your-account-number"
## tfvars Example
``` hcl
resource_prefix = "<customer-prefix>"
aws_region = "<aws-region>"
```

resource_prefix = "pre"
create_cloudtrail = true
partition = "aws"
ad_secrets_manager_path = "your/ad/path"
enable_aws_config = true
delete_after = 90
## Deployment Steps
- Change the working directory to the `management-account` directory
- If you are running this directory for the first time, comment out the S3 backend in `tstate.tf`
- From in front of `backend "s3"` to the bracket associated with the end of the code block
- Run `terraform init`
- Run `terraform plan` to review the resources being created
- If everything looks correct in the plan output, run `terraform apply -var-file ./tfvars/vars.tfvars`

``` hcl
data "terraform_remote_state" "day0" {
backend = "s3"
config = {
bucket = "ooc-us-gov-west-1-tf-state"
region = var.aws_region
key = "ooc-us-gov-west-1-tfsetup.tfstate"
profile = "ooc-mgmt"
}
}
```

<!-- BEGIN_TF_DOCS -->
## Requirements


## Providers


## Modules


## Resources

## Inputs

## Outputs

<!-- END_TF_DOCS -->

## Contributing

[Relative or absolute link to contributing.md](CONTRIBUTING.md)


## License

[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/license/mit/)


## Coalfire Pages

[Absolute link to any relevant Coalfire Pages](https://coalfire.com/)

### Copyright

Copyright © 2023 Coalfire Systems Inc.

0 comments on commit f746ee7

Please sign in to comment.