@@ -14,7 +14,7 @@ import path from 'node:path';
1414
1515import { SpawnStatus , codifySpawn } from '../../../utils/codify-spawn.js' ;
1616import Schema from './aws-profile-schema.json'
17- import { CSVCredentialsParameter } from './csv-credentials-parameter .js' ;
17+ import { CSVCredentialsTransformation } from './csv-credentials-transformation .js' ;
1818
1919export interface AwsProfileConfig extends StringIndexedObject {
2020 awsAccessKeyId : string ;
@@ -37,24 +37,25 @@ export class AwsProfileResource extends Resource<AwsProfileConfig> {
3737 parameterSettings : {
3838 awsAccessKeyId : { canModify : true } ,
3939 awsSecretAccessKey : { canModify : true } ,
40+ csvCredentials : { type : 'setting' } , // Type setting means it won't be included in the plan calculation
4041 output : { default : 'json' , canModify : true } ,
4142 profile : { default : 'default' , canModify : true } ,
4243 metadataServiceNumAttempts : { canModify : true } ,
4344 metadataServiceTimeout : { canModify : true } ,
4445 } ,
45- inputTransformation : CSVCredentialsParameter . transform ,
46- import : {
46+ transformation : CSVCredentialsTransformation ,
47+ importAndDestroy : {
4748 refreshKeys : [ 'output' , 'profile' , 'awsAccessKeyId' , 'awsSecretAccessKey' , 'region' ] ,
4849 requiredParameters : [ 'profile' ]
4950 }
5051 } ;
5152 }
5253
5354 override async validate ( parameters : Partial < AwsProfileConfig > ) : Promise < void > {
54- if ( parameters . csvCredentials
55- && ( parameters . awsAccessKeyId || parameters . awsSecretAccessKey ) ) {
56- throw new Error ( 'Csv credentials cannot be added together with awsAccessKeyId or awsSecretAccessKey' )
57- }
55+ // if (parameters.csvCredentials
56+ // && (parameters.awsAccessKeyId || parameters.awsSecretAccessKey)) {
57+ // throw new Error('Csv credentials cannot be added together with awsAccessKeyId or awsSecretAccessKey')
58+ // }
5859 }
5960
6061 override async refresh ( parameters : Partial < AwsProfileConfig > ) : Promise < Partial < AwsProfileConfig > | null > {
0 commit comments