PromucFlow_constructor/scripts
Goutham Pratapa 3bac05feeb
refactor: enhance deploy_preview.sh script for improved AWS configura… (#41042)
…tion

### Changes Made
- Updated the script to set strict error handling with `set -euo
pipefail`.
- Streamlined AWS CLI configuration by creating the `~/.aws/config` file
directly.
- Removed deprecated `dp-node-affinity-values.yaml` file and integrated
node affinity and tolerations directly into the Helm chart deployment
command.
- Improved pod name retrieval and added optional cleanup logic for
better resource management during deployment.

These changes enhance the reliability and maintainability of the
deployment process.

## Description
> [!TIP]  
> _Add a TL;DR when the description is longer than 500 words or
extremely technical (helps the content, marketing, and DevRel team)._
>
> _Please also include relevant motivation and context. List any
dependencies that are required for this change. Add links to Notion,
Figma or any other documents that might be relevant to the PR._


Fixes #`Issue Number`  
_or_  
Fixes `Issue URL`
> [!WARNING]  
> _If no issue exists, please create an issue first, and check with the
maintainers if the issue is valid._

## Automation

/ok-to-test tags=""

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!CAUTION]  
> If you modify the content in this section, you are likely to disrupt
the CI result for your PR.

<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No
2025-06-25 19:08:25 +05:30
..
build_dp_from_branch.sh ci: Use default CS URL for DPs (#25938) 2023-08-16 17:29:10 +05:30
cleanup_dp.sh fix cleanup of dps (#27159) 2023-09-11 16:37:27 +05:30
deploy_preview.sh refactor: enhance deploy_preview.sh script for improved AWS configura… (#41042) 2025-06-25 19:08:25 +05:30
generate_info_json.sh ci: Include build information in Docker image labels (#39047) 2025-02-06 11:22:19 +05:30
health_check.sh ci: docDB int test wait for appsmith health before cypress (#26655) 2023-08-25 15:27:48 +05:30
local_testing.sh fix: Add password based auth for postgres (#37068) 2024-12-06 10:49:27 +05:30
prepare_server_artifacts.sh feat: Make images adaptable to support both Postgres and MongoDB uris (#36424) 2024-09-19 21:45:46 +05:30
regen-baseline.sh chore: Add mover script for Mongo to postgres migration (#36458) 2024-09-25 15:22:02 +05:30
scout_vulnerabilities_data.sh chore: Adding step for install (#37276) 2024-11-07 15:39:33 +05:30
trivy_vulnerabilities_data.sh CI: Update Trivy DB (#38397) 2024-12-30 12:54:27 +05:30