diff --git a/samples/defang-provider-handoff/Dockerfile b/samples/defang-provider-handoff/Dockerfile new file mode 100644 index 00000000..454b452c --- /dev/null +++ b/samples/defang-provider-handoff/Dockerfile @@ -0,0 +1,18 @@ +# Use nginx as the base image +FROM nginx:stable + +# Set working directory to /app +WORKDIR /app + +# Copy project files to nginx directory +COPY . /usr/share/nginx/html + +# Set correct permissions for the project files +RUN chmod -R 755 /usr/share/nginx/html && chown -R nginx:nginx /usr/share/nginx/html + +# Copy the config file to nginx directory +COPY nginx.conf /etc/nginx/nginx.conf + +# Expose the port your app runs on +EXPOSE 8080 + diff --git a/samples/defang-provider-handoff/cloud-setup.html b/samples/defang-provider-handoff/cloud-setup.html new file mode 100644 index 00000000..d81b5d75 --- /dev/null +++ b/samples/defang-provider-handoff/cloud-setup.html @@ -0,0 +1,161 @@ + + +
+ + ++ This wizard will connect your AWS account to Defang by creating a + CloudFormation stack that sets up the required IAM roles for CI/CD. +
+Before you begin, make sure you have:
++ To allow GitHub Actions to securely deploy to your AWS account, you + need to create an OIDC provider and an IAM role in your AWS account. +
+ ++ The easiest way to set this up is to deploy a CloudFormation stack, + which will create the necessary resources for you. +
+ +Your AWS account has been successfully connected to Defang. You can now close this window.
+The AWS CloudFormation console has been opened in a new tab.
++ If the tab didn't open, your browser may have blocked the popup. + Click here to open it. +
++ After you've created the CloudFormation stack, click the "Confirm" + button below to complete the setup process. +
+ +