From 04dcb12416e73e9ec435a03dafb571325c757dba Mon Sep 17 00:00:00 2001 From: Ophidie <83857517+OphidieDev@users.noreply.github.com> Date: Sat, 24 May 2025 05:47:40 +0000 Subject: [PATCH 1/2] docs: clarify environment variable identifiers for cloudflare r2 use case --- docs/site/pages/docs/authentication.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/site/pages/docs/authentication.mdx b/docs/site/pages/docs/authentication.mdx index 69ba345..dfb2b6e 100644 --- a/docs/site/pages/docs/authentication.mdx +++ b/docs/site/pages/docs/authentication.mdx @@ -136,7 +136,7 @@ set your environment variable in various ways, like the following: ## Remote state management -Mantle supports managing remote state files using AWS S3 storage which requires authentication. You can +Mantle supports managing remote state files using AWS S3 or Cloudflare R2 storage which requires authentication. You can provide your credentials either through environment variables or [an AWS profile file](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html#cli-configure-profiles-create). @@ -150,7 +150,8 @@ getting your AWS credentials](https://docs.aws.amazon.com/general/latest/gr/aws- The simplest method is to set the `MANTLE_AWS_ACCESS_KEY_ID` and `MANTLE_AWS_SECRET_ACCESS_KEY` environment variables. Mantle also supports the `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` variables but recommends -you scope your variables to Mantle to avoid conflicts with other tools. +you scope your variables to Mantle to avoid conflicts with other tools. Cloudflare R2 is compatible with +this same authentication scheme so you can input your secret access key and key ID into the same environment variables. If you're using Mantle within an AWS EC2 instance or AWS Elastic Container Service, you can set the `MANTLE_AWS_INHERIT_IAM_ROLE` environment variable to `true` to inherit the permission set granted to the host From fb9e89643eeec1f1d9afaa79ab3b2a35ca570730 Mon Sep 17 00:00:00 2001 From: Ophidie <83857517+OphidieDev@users.noreply.github.com> Date: Sat, 24 May 2025 05:52:19 +0000 Subject: [PATCH 2/2] docs: add comma to authentication page --- docs/site/pages/docs/authentication.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/site/pages/docs/authentication.mdx b/docs/site/pages/docs/authentication.mdx index dfb2b6e..43afbd3 100644 --- a/docs/site/pages/docs/authentication.mdx +++ b/docs/site/pages/docs/authentication.mdx @@ -151,7 +151,7 @@ getting your AWS credentials](https://docs.aws.amazon.com/general/latest/gr/aws- The simplest method is to set the `MANTLE_AWS_ACCESS_KEY_ID` and `MANTLE_AWS_SECRET_ACCESS_KEY` environment variables. Mantle also supports the `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` variables but recommends you scope your variables to Mantle to avoid conflicts with other tools. Cloudflare R2 is compatible with -this same authentication scheme so you can input your secret access key and key ID into the same environment variables. +this same authentication scheme, so you can input your secret access key and key ID into the same environment variables. If you're using Mantle within an AWS EC2 instance or AWS Elastic Container Service, you can set the `MANTLE_AWS_INHERIT_IAM_ROLE` environment variable to `true` to inherit the permission set granted to the host