Closed lissmeister closed 8 months ago
Removal of unnecessary imports and variables
The team has cleaned up the codebase by getting rid of elements that are no longer needed. These include certain imports like prompts
from configure.js
, arguments
in index.js
, get
import in vault.js
, and some unnecessary variables in vault.js
and services.js
.
Optimization of loop methods in vault.js
The team has replaced for-of
loops with forEach
loops in writeEnvDataToVault
and writeEnvDataToWordPressSites
functions. This is a more efficient way of looping through items in an array, and it makes the code easier to maintain.
Refactoring of configuration details in services.js
The configuration for s3Bucket-staging
and s3Bucket-production
has been removed from the writeTrellisConfig
function. Additionally, they replaced references to awsConfig
with references to store
for awsAccessKeyId
and awsSecretAccessKey
.
Improvements to AWS Key management in aws.js
The team added store.set
methods for awsAccessKeyId
and awsSecretAccessKey
in the createIAMUserIfNotExists
function. This is a safer way to store AWS credentials and provides a more secure access method.