Compare commits

..

No commits in common. "686b18d1f4329e80cf6d9b916eaa0c231333edb9" and "6e34e83933aaa1120b7d0049f458608fdd6fa27b" have entirely different histories.

3 changed files with 3 additions and 7 deletions

View file

@ -6,7 +6,6 @@ const date = @import("date");
const json = @import("json");
const zeit = @import("zeit");
const credentials = @import("aws_credentials.zig");
const awshttp = @import("aws_http.zig");
const url = @import("url.zig");
const servicemodel = @import("servicemodel.zig");
@ -20,6 +19,7 @@ const scoped_log = std.log.scoped(.aws);
/// controls are insufficient (e.g. use in build script)
pub fn globalLogControl(aws_level: std.log.Level, http_level: std.log.Level, signing_level: std.log.Level, off: bool) void {
const signing = @import("aws_signing.zig");
const credentials = @import("aws_credentials.zig");
logs_off = off;
signing.logs_off = off;
credentials.logs_off = off;
@ -84,7 +84,6 @@ pub const Options = struct {
dualstack: bool = false,
success_http_code: i64 = 200,
client: Client,
credential_options: credentials.Options = .{},
diagnostics: ?*Diagnostics = null,
@ -416,7 +415,6 @@ pub fn Request(comptime request_action: anytype) type {
.dualstack = options.dualstack,
.sigv4_service_name = Self.service_meta.sigv4_name,
.mock = options.mock,
.credential_options = options.credential_options,
},
);
defer response.deinit();

View file

@ -408,7 +408,7 @@ fn getProfileCredentials(allocator: std.mem.Allocator, options: Profile) !?auth.
// Get active profile
const profile = (try getEnvironmentVariable(allocator, "AWS_PROFILE")) orelse
try allocator.dupe(u8, options.profile_name orelse "default");
try allocator.dupe(u8, "default");
defer allocator.free(profile);
log.debug("Looking for file credentials using profile '{s}'", .{profile});
log.debug("Checking credentials file: {s}", .{creds_file_path.evaluated_path});

View file

@ -90,8 +90,6 @@ pub const Options = struct {
dualstack: bool = false,
sigv4_service_name: ?[]const u8 = null,
credential_options: credentials.Options = .{},
mock: ?Mock = null,
};
@ -188,7 +186,7 @@ pub const AwsHttp = struct {
defer endpoint.deinit();
log.debug("Calling endpoint {s}", .{endpoint.uri});
// TODO: Should we allow customization here?
const creds = try credentials.getCredentials(self.allocator, options.credential_options);
const creds = try credentials.getCredentials(self.allocator, .{});
defer creds.deinit();
const signing_config: signing.Config = .{
.region = getRegion(service, options.region),