https://github.com/lightstep/aws-cloudwatch-metric-stream-terraform
https://github.com/lightstep/aws-cloudwatch-metric-stream-terraform
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lightstep/aws-cloudwatch-metric-stream-terraform
- Owner: lightstep
- Created: 2021-08-26T21:57:51.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-03T15:45:38.000Z (almost 3 years ago)
- Last Synced: 2024-12-29T06:46:34.698Z (5 months ago)
- Language: HCL
- Size: 43.9 KB
- Stars: 1
- Watchers: 9
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# aws-cloudwatch-metric-stream-terraform
### Prerequisites
1. [Terraform](https://learn.hashicorp.com/tutorials/terraform/install-cli)
1. A Lightstep project [access token](https://docs.lightstep.com/docs/create-and-manage-access-tokens)
1. AWS Access Key/Secret with IAM permissions to create the following resources:
* aws_cloudwatch_metric_stream
* aws_iam_role
* aws_iam_role_policy
* aws_kinesis_firehose_delivery_stream
* aws_s3_bucket
* aws_s3_bucket_public_access_block
### Installation```BASH
% git clone [email protected]:lightstep/aws-cloudwatch-metric-stream-terraform.git
% cd aws-cloudwatch-metric-stream-terraform% export AWS_ACCESS_KEY_ID=
% export AWS_SECRET_ACCESS_KEY=
% terraform init
# Enter your Lightstep project access token when prompted
% terraform apply
var.lightstep_access_token
Lightstep project access tokenEnter a value:
# The above is the minimal install with default values.
# For custom install, copy example.tfvars (eg: `cp example.tfvars my-vars.tfvars`), edit the new file, then run:
% terraform apply -var-file="my-vars.tfvars"
```It may take up to 15 minutes for data to appear in your Lightstep project depending on your chosen values for `buffer_interval` (default: 5 min) and `buffer_size` (default: 5 Mib).
### Options
All options are documented in `variables.tf` and `example.tfvars`