Skip to content

Commit f218c96

Browse files
committed
Use CloudFront access keys instead of S3's.
1 parent fddc6d8 commit f218c96

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Deployer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ public function cloudfront_invalidate_all_items() : void {
131131
- an IAM role.
132132
*/
133133
if (
134-
Controller::getValue( 's3AccessKeyID' ) &&
135-
Controller::getValue( 's3SecretAccessKey' )
134+
Controller::getValue( 'cfAccessKeyID' ) &&
135+
Controller::getValue( 'cfSecretAccessKey' )
136136
) {
137137

138138
$credentials = new \Aws\Credentials\Credentials(
139-
Controller::getValue( 's3AccessKeyID' ),
139+
Controller::getValue( 'cfAccessKeyID' ),
140140
\WP2Static\CoreOptions::encrypt_decrypt(
141141
'decrypt',
142-
Controller::getValue( 's3SecretAccessKey' )
142+
Controller::getValue( 'cfSecretAccessKey' )
143143
)
144144
);
145145
}

0 commit comments

Comments
 (0)