chainlink-node

ChainOrion/chainlink-node/aws

Terraform Module HCL AWS

Terraform module to create AWS infra for Chainlink Node

Install
module "chainlink-node" {
source = "ChainOrion/chainlink-node/aws"
version = "1.8.0"
}
plain text: /constructs/tfmod-chainorion-chainlink-node-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Chainlink Node Terraform Module Terraform module which creates AWS serverless infra for Chainlink Node: - AWS Fargate - AWS Network Load Balancer - AWS IAM - AWS CloudWatch Terraform module for Chainlink External Adapters: here Architecture overview Where: - !#DAE8FC Covered by this Chainlink Node terraform module - !#D5E8D4 Covered by Chainlink External Adapters terraform module - !#D0CEE2 Covered by RDS community terraform module - !#FFE6CC Covered by VPC community terraform module Usage Basic example Full example here ``hcl module "chainlink_node" { source = "ChainOrion/chainlink-node/aws" project = local.project environment = local.environment aws_region = "eu-west-1" aws_account_id = data.aws_caller_identity.current.account_id vpc_id = module.vpc.vpc_id vpc_cidr_block = module.vpc.vpc

Inputs (23)
NameTypeDescriptionDefault
aws_regionstringAWS Region (required for CloudWatch logs configuration) required
vpc_idstringID of the VPC where Chainlink EAs should be deployed required
subnet_mappingmap(any)A map of values required to enable failover between AZs. See an example in ./exa required
config_tomlstringBase64 encoded Chainlink node configuration from config.toml required
projectstringProject name required
vpc_cidr_blockstringThe CIDR block of the VPC required
secrets_secret_arnstringARN of the Secrets Manager Secret in the same AWS account and Region that contai required
aws_account_idstringAWS account id. Used to add alarms to dashboard required
node_versionstringChainlink node version. The latest version could be found here: https://hub.dock required
vpc_private_subnetslist(any)VPC private subnets where Chainlink Node should be deployed (at least 2) required
env_varsmap(any)Map of values that will be set as environment variables for Chainlink node proce{}
task_cpunumberAllocated CPU for chainlink node container2048
route53_enabledboolDefines if AWS Route53 record and AWS ACM certificate for UI access should be crfalse
route53_zoneidstringRoute53 hosted zone id. Nameservers of your zone should be added to your domain ""
environmentstringEnvironment name"nonprod"
node_image_sourcestringChainlink node docker image source. This variable can be used to rewrite default"public.ecr.aws/chainlink/chainlink"
tls_cert_secret_arnstringARN of the Secrets Manager Secret in the same AWS account and Region that contai""
tls_key_secret_arnstringARN of the Secrets Manager Secret in the same AWS account and Region that contai""
route53_domain_namestringDomain name that is used in your AWS Route53 hosted zone. Nameservers of your zo""
route53_subdomain_namestringSubdomain name that will be used to create Route53 record to NLB endpoint with t""
monitoring_enabledboolDefines whether to create CloudWatch dashboard and custom metrics or nottrue
sns_topic_arnstringSNS topic arn for alerts. If not specified, module will create an empty topic an""
task_memorynumberAllocated Memory for chainlink node container4096
Outputs (4)
subnet_mapping — A map of values required to enable failover between AZs
nlb_endpoint — NLB endpoint to accsess Chainlink Node UI. UI port is open only to the VPC CIDR block, in order to a
nlb_security_group_id — ID of security group attached to NLB. It's possible to use it to configure additional sg inbound rul
env_vars — Chainlink node configuration environment variables
Resources (20)
aws_cloudwatch_dashboardaws_cloudwatch_log_groupaws_cloudwatch_log_metric_filteraws_cloudwatch_metric_alarmaws_ecs_clusteraws_ecs_serviceaws_ecs_task_definitionaws_iam_policyaws_iam_roleaws_iam_role_policy_attachmentaws_lbaws_lb_listeneraws_lb_target_groupaws_route53_recordaws_secretsmanager_secretaws_secretsmanager_secret_versionaws_security_groupaws_security_group_ruleaws_sns_topicrandom_string
Details
FrameworkTerraform Module
LanguageHCL
Version1.8.0
Cloud AWS
★ Stars7
Forks1
Total downloads3.7k
Inputs23
Outputs4
Resources20
Examples2
LicenseMIT
NamespaceChainOrion
Updated