Skip to content

Commit

Permalink
Merge pull request #4 from geekcell/update-refs
Browse files Browse the repository at this point in the history
docs: Update README
  • Loading branch information
Ic3w0lf authored Jun 28, 2023
2 parents 389a31c + d993729 commit efe5744
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
Terraform module which creates resources to integrate AWS with New Relic by using Kinesis Firehose streams. Supports
VPC Flow logs. Comes with the following sub modules:

[Fargate PHP Daemon](./modules/fargate\_php\_daemon/README.md)
[SSM License Key](./modules/ssm\_license\_key/README.md)
* [Fargate PHP Daemon](./modules/fargate\_php\_daemon/README.md)
* [SSM License Key](./modules/ssm\_license\_key/README.md)

## Inputs

Expand Down Expand Up @@ -75,16 +75,16 @@ No outputs.

## Resources

- resource.aws_cloudwatch_metric_stream.main (main.tf#140)
- resource.aws_flow_log.main (main.tf#289)
- resource.aws_kinesis_firehose_delivery_stream.cloudwatch_metrics (main.tf#152)
- resource.aws_kinesis_firehose_delivery_stream.vpc_flow_logs (main.tf#188)
- resource.aws_s3_bucket.main (main.tf#256)
- resource.aws_s3_bucket_acl.main (main.tf#262)
- resource.aws_s3_bucket_public_access_block.main (main.tf#277)
- resource.aws_s3_bucket_server_side_encryption_configuration.main (main.tf#267)
- resource.newrelic_api_access_key.main (main.tf#306)
- resource.newrelic_cloud_aws_link_account.main (main.tf#320)
- resource.aws_cloudwatch_metric_stream.main (main.tf#145)
- resource.aws_flow_log.main (main.tf#294)
- resource.aws_kinesis_firehose_delivery_stream.cloudwatch_metrics (main.tf#157)
- resource.aws_kinesis_firehose_delivery_stream.vpc_flow_logs (main.tf#193)
- resource.aws_s3_bucket.main (main.tf#261)
- resource.aws_s3_bucket_acl.main (main.tf#267)
- resource.aws_s3_bucket_public_access_block.main (main.tf#282)
- resource.aws_s3_bucket_server_side_encryption_configuration.main (main.tf#272)
- resource.newrelic_api_access_key.main (main.tf#311)
- resource.newrelic_cloud_aws_link_account.main (main.tf#325)
- data source.aws_caller_identity.current (main.tf#10)

# Examples
Expand Down
19 changes: 12 additions & 7 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@
* Terraform module which creates resources to integrate AWS with New Relic by using Kinesis Firehose streams. Supports
* VPC Flow logs. Comes with the following sub modules:
*
* [Fargate PHP Daemon](./modules/fargate_php_daemon/README.md)
* [SSM License Key](./modules/ssm_license_key/README.md)
* * [Fargate PHP Daemon](./modules/fargate_php_daemon/README.md)
* * [SSM License Key](./modules/ssm_license_key/README.md)
*/
data "aws_caller_identity" "current" {}

#
# INTEGRATION ROLE
#
module "iam_integration_role" {
source = "github.com/geekcell/terraform-aws-iam-role?ref=v1"
source = "geekcell/iam-role/aws"
version = ">= 1.0.0, < 2.0.0"

name = coalesce(var.ingeration_role_name, "${var.name}-integration")
use_name_prefix = var.integration_role_name_prefix
Expand Down Expand Up @@ -41,7 +42,8 @@ module "iam_integration_role" {
# FIREHOSE ROLE
#
module "iam_firehose_role" {
source = "github.com/geekcell/terraform-aws-iam-role?ref=v1"
source = "geekcell/iam-role/aws"
version = ">= 1.0.0, < 2.0.0"

name = coalesce(var.firehose_role_name, "${var.name}-firehose")
use_name_prefix = var.firehose_role_name_prefix
Expand All @@ -58,7 +60,8 @@ module "iam_firehose_role" {
}

module "iam_firehose_policy" {
source = "github.com/geekcell/terraform-aws-iam-policy?ref=v1"
source = "geekcell/iam-policy/aws"
version = ">= 1.0.0, < 2.0.0"

name = "${var.name}-firehose"
use_name_prefix = var.firehose_role_name_prefix
Expand Down Expand Up @@ -94,7 +97,8 @@ module "iam_firehose_policy" {
# METRIC STREAM ROLE
#
module "iam_metric_stream_role" {
source = "github.com/geekcell/terraform-aws-iam-role?ref=v1"
source = "geekcell/iam-role/aws"
version = ">= 1.0.0, < 2.0.0"

name = coalesce(var.metric_stream_role_name, "${var.name}-metric-stream")
use_name_prefix = var.metric_stream_role_name_prefix
Expand All @@ -111,7 +115,8 @@ module "iam_metric_stream_role" {
}

module "iam_metric_stream_policy" {
source = "github.com/geekcell/terraform-aws-iam-policy?ref=v1"
source = "geekcell/iam-policy/aws"
version = ">= 1.0.0, < 2.0.0"

name = "${var.name}-metric-stream"
use_name_prefix = var.metric_stream_role_name_prefix
Expand Down

0 comments on commit efe5744

Please sign in to comment.