From 969839c840ea7f7c1f1837f54943413b93f9dfe3 Mon Sep 17 00:00:00 2001 From: Derek Slenk Date: Fri, 27 Jun 2025 15:58:04 -0400 Subject: [PATCH] Revert to simple environment variable approach MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove backend pipeline deployment that was causing IAM issues - Remove complex secret configuration from backend.ts - Use simple environment variable approach from Amplify Console 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- amplify.yml | 6 ------ amplify/backend.ts | 11 ++--------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/amplify.yml b/amplify.yml index 9c464c2..e75547b 100644 --- a/amplify.yml +++ b/amplify.yml @@ -1,10 +1,4 @@ version: 1 -backend: - phases: - build: - commands: - - npm ci --cache .npm - - npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID frontend: phases: preBuild: diff --git a/amplify/backend.ts b/amplify/backend.ts index aeab652..af6aac2 100644 --- a/amplify/backend.ts +++ b/amplify/backend.ts @@ -1,18 +1,11 @@ -import { defineBackend, secret } from '@aws-amplify/backend'; +import { defineBackend } from '@aws-amplify/backend'; import { auth } from './auth/resource'; import { data } from './data/resource'; /** * @see https://docs.amplify.aws/react/build-a-backend/ to add storage, functions, and more */ -const backend = defineBackend({ +defineBackend({ auth, data, }); - -// Define secrets that will be available as environment variables -backend.addOutput({ - custom: { - YOUTUBE_API_KEY: secret('YOUTUBE_API_KEY'), - }, -});