在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):r7kamura/mastodon-terraform开源软件地址(OpenSource Url):https://github.com/r7kamura/mastodon-terraform开源编程语言(OpenSource Language):HCL 100.0%开源软件介绍(OpenSource Introduction):mastodon-terraformBoilerplate for running Mastodon on AWS using Terraform and CircleCI.
Usage
Required environment variablesAWS_ACCESS_KEY_IDAWS IAM User access key ID for Terraform. e.g. AWS_DEFAULT_REGIONAWS region that the resources will be located in. e.g. AWS_SECRET_ACCESS_KEYAWS IAM User secret access key for Terraform. e.g. AWS_S3_BUCKET_TERRAFORM_STATE_NAMEThe domain that your terraform state file will be stored. To run Terraform from CircleCI, you need to prepare a private AWS S3 bucket to store your terraform state file. e.g. AWS_S3_BUCKET_TERRAFORM_STATE_KEYWhere to locate the terraform state file on the specified AWS S3 bucket. e.g. TF_VAR_aws_s3_bucket_nameA valid S3 bucket name for uploading files (e.g. user profile images). e.g. TF_VAR_mastodon_s3_cloudfront_hostThe domain for the CloudFront distribution where uploaded files will be provided from. e.g. TF_VAR_mastodon_db_passDatabase password. e.g. Generate a long random value like this: ruby -r securerandom -e "puts SecureRandom.hex(64)" TF_VAR_mastodon_docker_image_tagMastodon Docker image tag to detect which image to be deployed on ECS. If you are using mastodon-docker to build and push it to ECR, the CircleCI build number will be the Docker image tag. e.g. Note: this variable is not required at the 1st time because we need to create ECR repository before building Mastodon Docker image. TF_VAR_mastodon_docker_image_tag_rails_db_migrationMastodon Docker image tag to detect which image to be deployed on ECS for e.g. Note: this variable is not required at the 1st time because we need to create ECR repository before building Mastodon Docker image. TF_VAR_mastodon_local_domainThe domain that your Mastodon instance will run on. e.g. TF_VAR_mastodon_otp_secretOne-time password secret e.g. Generate a long random value like this: ruby -r securerandom -e "puts SecureRandom.hex(64)" TF_VAR_mastodon_secret_key_baseThe secret key base. e.g. Generate a long random value like this: ruby -r securerandom -e "puts SecureRandom.hex(64)" Optional environment variablesTF_VAR_aws_acm_certificate_arnIf you want to use HTTPS, create free SSL certificate for your domain on Amazon Certificate Manager on us-east-1 region, then set its ARN to this environment variable. e.g. TF_VAR_aws_acm_certificate_arn_for_albFor using secure WebSocket connection, create free SSL certificate for your domain on Amazon Certificate Manager on your region, then set its ARN to this environment variable too. e.g. TF_VAR_aws_db_instance_mastodon_instance_classAWS RDS DB instance class. default: FYI: http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html. TF_VAR_aws_ecs_task_definition_mastodon_node_streaming_memoryMemory size for node_streaming ECS task. default: TF_VAR_aws_ecs_task_definition_mastodon_rails_db_migration_memoryMemory size for rails_db_migration ECS task. default: TF_VAR_aws_ecs_task_definition_mastodon_rails_db_set_up_memoryMemory size for rails_db_set_up ECS task. default: TF_VAR_aws_ecs_task_definition_mastodon_rails_mastodon_make_admin_memoryMemory size for rails_mastodon_make_admin_memory ECS task. default: TF_VAR_aws_ecs_task_definition_mastodon_rails_puma_memoryMemory size for rails_puma ECS task. default: TF_VAR_aws_ecs_task_definition_mastodon_rails_sidekiq_memoryMemory size for rails_sidekiq ECS task. default: TF_VAR_aws_elasticache_cluster_node_typeAWS Elasticache Cluster node type. default: FYI: https://aws.amazon.com/jp/elasticache/pricing/. TF_VAR_aws_launch_configuration_mastodon_instance_typeAWS EC2 instance type. default: FYI: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html. TF_VAR_mastodon_administrator_nameAdministrator user name for the TF_VAR_mastodon_aws_access_key_idAWS IAM user access key ID for Rails to access to AWS API. TF_VAR_mastodon_aws_secret_access_keyAWS IAM user secret access key for Rails to access to AWS API. TF_VAR_mastodon_db_nameDB name. default: TF_VAR_mastodon_db_userDB user name. default: TF_VAR_mastodon_default_localeDefault locale. default: TF_VAR_mastodon_email_domain_blacklistEmail domain blacklist. TF_VAR_mastodon_email_domain_whitelistEmail domain whitelist. TF_VAR_mastodon_node_streaming_api_base_urlThe base URL of Streaming API endpoint. e.g. TF_VAR_mastodon_node_streaming_cluster_numdefault: TF_VAR_mastodon_single_user_modeShould the instance run in single user mode? (Disable registrations, redirect to front page) default: Others
ResourcesThis boilerplate will create the following resources:
ContributingPull Requests are welcome if you found bugs or features you think are missing. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论